diff --git a/src/client/os.ts b/src/client/os.ts index e97c2d7ba0d5b3caf322cf85f92f56c70d57132d..2b72391bf5ade4c61c5d2ecb392c9ca61d7f2767 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> = T extends Promise<infer U> ? U : - T extends (...args: Array<any>) => Promise<infer V> ? V : + T extends (...args: any[]) => Promise<infer V> ? V : T; let openingEmojiPicker: AwaitType<ReturnType<typeof popup>> | null = null; let activeTextarea: HTMLTextAreaElement | HTMLInputElement | null = null;