diff --git a/src/client/os.ts b/src/client/os.ts index e97c2d7ba0..2b72391bf5 100644 --- a/src/client/os.ts +++ b/src/client/os.ts @@ -305,7 +305,7 @@ export async function pickEmoji(src?: HTMLElement, opts) { type AwaitType = T extends Promise ? U : - T extends (...args: Array) => Promise ? V : + T extends (...args: any[]) => Promise ? V : T; let openingEmojiPicker: AwaitType> | null = null; let activeTextarea: HTMLTextAreaElement | HTMLInputElement | null = null;