UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

21 lines (20 loc) 623 B
import type { Channel, ChannelQueryOptions, StreamChat } from 'stream-chat'; type GetChannelParams = { client: StreamChat; channel?: Channel; id?: string; members?: string[]; options?: ChannelQueryOptions; type?: string; }; /** * Calls channel.watch() if it was not already recently called. Waits for watch promise to resolve even if it was invoked previously. * @param client * @param members * @param options * @param type * @param id * @param channel */ export declare const getChannel: ({ channel, client, id, members, options, type, }: GetChannelParams) => Promise<Channel>; export {};