mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
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.
12 lines
348 B
Plaintext
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];
|