Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
eslint: Fix unicorn/prefer-type-literal-last.
Anders Kaseorga3d16b3dc469
diff --git a/web/src/rendered_markdown.ts b/web/src/rendered_markdown.tsindex 612a0be83c2..8ecf159696c 100644--- a/web/src/rendered_markdown.ts+++ b/web/src/rendered_markdown.ts@@ -68,7 +68,7 @@ function get_user_group_id_for_mention_button(elem: HTMLElement): number {}// We pass a minimal mock stream object in info_overlay for rendering stream links.-type StreamInfo = {stream_id: number; name: string} | sub_store.StreamSubscription;+type StreamInfo = sub_store.StreamSubscription | {stream_id: number; name: string};export function update_stream_link_element($elem: JQuery, stream_info: StreamInfo): void {$elem.html(render_decorated_channel_name({stream: stream_info, inline_with_text: true}));diff --git a/web/src/typeahead.ts b/web/src/typeahead.tsindex 7d218b19857..f0b0dd5693b 100644--- a/web/src/typeahead.ts+++ b/web/src/typeahead.ts@@ -40,14 +40,14 @@ export function get_popular_emojis(): EmojiItem[] {export let frequently_used_emojis: EmojiItem[] = [...get_popular_emojis()];export type Emoji =+ | UnicodeEmoji| {emoji_name: string;reaction_type: "realm_emoji" | "zulip_extra_emoji";is_realm_emoji: true;emoji_url?: string | undefined;emoji_code?: undefined;- }- | UnicodeEmoji;+ };// emoji_code is only available for unicode emojis.type UnicodeEmoji = {