Files
zulip/static/shared/js/resolved_topic.js.flow
Greg Price 760cfcc603 resolved_topic: Implement resolve, unresolve, and display.
We have two different frontend implementations of computing the
un-resolved form of a topic name, and they have a subtle -- but
intentional -- difference in behavior.

Factor them both out into the resolve_topic module, along with
their inverse, and with comments and tests.
2022-03-07 21:35:00 -08:00

12 lines
348 B
Plaintext

// @flow strict
declare export var RESOLVED_TOPIC_PREFIX: string;
declare export function is_resolved(topic_name: string): boolean;
declare export function resolve_name(topic_name: string): string;
declare export function unresolve_name(topic_name: string): string;
declare export function display_parts(topic_name: string): [string, string];