UNPKG

stream-chat

Version:

JS SDK for the Stream Chat API

21 lines (18 loc) 626 B
// eslint-disable-next-line @typescript-eslint/no-explicit-any export type SearchSourceState<T = any> = { hasNext: boolean; isActive: boolean; isLoading: boolean; items: T[] | undefined; searchQuery: string; lastQueryError?: Error; next?: string | null; offset?: number; }; export type SearchSourceOptions = { /** The number of milliseconds to debounce the search query. The default interval is 300ms. */ debounceMs?: number; pageSize?: number; }; export type SearchSourceType = 'channels' | 'users' | 'messages' | (string & {}); export type QueryReturnValue<T> = { items: T[]; next?: string | null };