From d86e5eab78f76e1e88c6a4b3f5ff64807e67d027 Mon Sep 17 00:00:00 2001 From: Varun Singh Date: Wed, 21 Aug 2024 22:20:59 +0530 Subject: [PATCH] user_topics: Add `AllVisibilityPolicies` to type. --- web/src/user_topics.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/web/src/user_topics.ts b/web/src/user_topics.ts index b9c6846fe4..b535b20bc9 100644 --- a/web/src/user_topics.ts +++ b/web/src/user_topics.ts @@ -18,6 +18,13 @@ import {get_time_from_date_muted} from "./util"; export type ServerUserTopic = z.infer; +export type AllVisibilityPolicies = { + INHERIT: 0; + MUTED: 1; + UNMUTED: 2; + FOLLOWED: 3; +}; + export type UserTopic = { stream_id: number; stream: string; @@ -41,7 +48,7 @@ export const all_visibility_policies = { MUTED: 1, UNMUTED: 2, FOLLOWED: 3, -}; +} as const; export function update_user_topics( stream_id: number,