compose_fade: Remove duplicate `AllVisibilityPolicies` type.

This commit is contained in:
Varun Singh 2024-08-27 19:01:06 +05:30 committed by Tim Abbott
parent 51ff57f1bf
commit 3d6dcf8fe5
2 changed files with 8 additions and 14 deletions

View File

@ -10,15 +10,9 @@ import * as message_viewport from "./message_viewport";
import * as people from "./people";
import * as rows from "./rows";
import type {TopicLink} from "./types";
import type {AllVisibilityPolicies} from "./user_topics";
import * as util from "./util";
type AllVisibilityPolicies = {
INHERIT: 0;
MUTED: 1;
UNMUTED: 2;
FOLLOWED: 3;
};
// TODO/TypeScript: Move this to message_list_view.js when it's migrated to TypeScript.
type MessageContainer = {
background_color: string;

View File

@ -18,13 +18,6 @@ import {get_time_from_date_muted} from "./util";
export type ServerUserTopic = z.infer<typeof user_topic_schema>;
export type AllVisibilityPolicies = {
INHERIT: 0;
MUTED: 1;
UNMUTED: 2;
FOLLOWED: 3;
};
export type UserTopic = {
stream_id: number;
stream: string;
@ -43,6 +36,13 @@ const all_user_topics = new Map<
}>
>();
export type AllVisibilityPolicies = {
INHERIT: 0;
MUTED: 1;
UNMUTED: 2;
FOLLOWED: 3;
};
export const all_visibility_policies = {
INHERIT: 0,
MUTED: 1,