@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
32 lines • 1.12 kB
TypeScript
/**
* ```js
* import { CommentRepository } from '@amityco/ts-sdk-react-native'
* const comments = await CommentRepository.getCommentByIds(['foo', 'bar'])
* ```
*
* Fetches a collection of {@link Amity.Comment} objects
*
* @param commentIds the IDs of the {@link Amity.Comment} to fetch
* @returns the associated collection of {@link Amity.Comment} objects
*
* @category Comment API
* @async
*/
export declare const getCommentByIds: {
(commentIds: Amity.Comment['commentId'][]): Promise<Amity.Cached<Amity.Comment[]>>;
/**
* ```js
* import { getCommentByIds } from '@amityco/ts-sdk-react-native'
* const comments = getCommentByIds.locally(['foo', 'bar'])
* ```
*
* Fetches a collection of {@link Amity.Comment} objects from cache
*
* @param commentIds the IDs of the {@link Amity.Comment} to fetch
* @returns the associated collection of {@link Amity.Comment} objects
*
* @category Comment API
*/
locally(commentIds: Amity.Comment['commentId'][]): Amity.Cached<Amity.Comment[]> | undefined;
};
//# sourceMappingURL=getCommentByIds.d.ts.map