UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

32 lines 1.16 kB
/** * ```js * import { getSubChannels } from '@amityco/ts-sdk-react-native' * const subChannels = await getSubChannels(['foo', 'bar']) * ``` * * Fetches a collection of {@link Amity.SubChannel} objects * * @param subChannelIds the IDs of the {@link Amity.SubChannel} to fetch * @returns the associated collection of {@link Amity.SubChannel} objects * * @category Channel API * @async */ export declare const getSubChannels: { (subChannelIds: Amity.SubChannel['subChannelId'][]): Promise<Amity.Cached<Amity.SubChannel[]>>; /** * ```js * import { getSubChannels } from '@amityco/ts-sdk-react-native' * const subChannels = getSubChannels.locally(['foo', 'bar']) ?? [] * ``` * * Fetches a collection of {@link Amity.SubChannel} objects from cache * * @param subChannelIds the IDs of the {@link Amity.SubChannel} to fetch * @returns the associated collection of {@link Amity.SubChannel} objects * * @category Channel API */ locally(subChannelIds: Amity.SubChannel['subChannelId'][]): Amity.Cached<Amity.SubChannel[]> | undefined; }; //# sourceMappingURL=getSubChannels.d.ts.map