inbox_ui: Convert module to TypeScript.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-05-14 16:13:41 -07:00 committed by Tim Abbott
parent 1fa6c707ce
commit 941e2ae5dc
4 changed files with 373 additions and 182 deletions

View File

@ -117,7 +117,7 @@ EXEMPT_FILES = make_set(
"web/src/hashchange.js",
"web/src/hbs.d.ts",
"web/src/hotkey.js",
"web/src/inbox_ui.js",
"web/src/inbox_ui.ts",
"web/src/inbox_util.ts",
"web/src/info_overlay.ts",
"web/src/information_density.ts",

File diff suppressed because it is too large Load Diff

View File

@ -551,7 +551,7 @@ type ConversationContext = {
topic: string;
topic_url: string;
mention_in_unread: boolean;
visibility_policy: number | boolean;
visibility_policy: number | false;
all_visibility_policies: {
INHERIT: number;
MUTED: number;

View File

@ -70,7 +70,7 @@ export function update_user_topics(
}
}
export function get_topic_visibility_policy(stream_id: number, topic: string): number | boolean {
export function get_topic_visibility_policy(stream_id: number, topic: string): number | false {
if (stream_id === undefined) {
return false;
}