From 658d7220e9e143933a19186e3f354ec4d4934442 Mon Sep 17 00:00:00 2001 From: MartinCupela <32706194+MartinCupela@users.noreply.github.com> Date: Fri, 8 Nov 2024 12:57:42 +0100 Subject: [PATCH] fix: change SuggestionEmoji to extended EmojiSearchIndexResult (#2551) --- src/components/ChatAutoComplete/ChatAutoComplete.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/ChatAutoComplete/ChatAutoComplete.tsx b/src/components/ChatAutoComplete/ChatAutoComplete.tsx index faba2d4ae..795ebef36 100644 --- a/src/components/ChatAutoComplete/ChatAutoComplete.tsx +++ b/src/components/ChatAutoComplete/ChatAutoComplete.tsx @@ -11,7 +11,7 @@ import type { CommandResponse, UserResponse } from 'stream-chat'; import type { TriggerSettings } from '../MessageInput/DefaultTriggerProvider'; import type { CustomTrigger, DefaultStreamChatGenerics, UnknownType } from '../../types/types'; -import type { EmojiSearchIndex } from '../MessageInput'; +import { EmojiSearchIndex, EmojiSearchIndexResult } from '../MessageInput'; type ObjectUnion = T[keyof T]; @@ -23,9 +23,7 @@ export type SuggestionUser< StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics > = UserResponse; -export type SuggestionEmoji = Awaited< - ReturnType['search']> ->; +export type SuggestionEmoji = EmojiSearchIndexResult & T; export type SuggestionItem< StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,