UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

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