mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 16:43:57 +00:00
tsconfig: Enable exactOptionalPropertyTypes.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
08a50cf74b
commit
507eb4913c
@@ -7,8 +7,8 @@ import type {UserStatusEmojiInfo} from "./user_status";
|
||||
const stored_messages = new Map<number, Message>();
|
||||
|
||||
export type MatchedMessage = {
|
||||
match_content?: string;
|
||||
match_subject?: string;
|
||||
match_content?: string | undefined;
|
||||
match_subject?: string | undefined;
|
||||
};
|
||||
|
||||
export type MessageReactionType = "unicode_emoji" | "realm_emoji" | "zulip_extra_emoji";
|
||||
@@ -130,7 +130,7 @@ export type Message = (
|
||||
flags?: string[];
|
||||
|
||||
small_avatar_url?: string; // Used in `message_avatar.hbs`
|
||||
status_emoji_info?: UserStatusEmojiInfo; // Used in `message_body.hbs`
|
||||
status_emoji_info?: UserStatusEmojiInfo | undefined; // Used in `message_body.hbs`
|
||||
} & (
|
||||
| {
|
||||
type: "private";
|
||||
|
||||
Reference in New Issue
Block a user