UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

32 lines 999 B
/** * ```js * import { CommentRepository } from '@amityco/ts-sdk-react-native' * const comment = await CommentRepository.getComment('foobar') * ``` * * Fetches a {@link Amity.Comment} object * * @param commentId the ID of the {@link Amity.Comment} to fetch * @returns the associated {@link Amity.Comment} object * * @category Comment API * @async */ export declare const getComment: { (commentId: Amity.Comment['commentId']): Promise<Amity.Cached<Amity.Comment>>; /** * ```js * import { getComment } from '@amityco/ts-sdk-react-native' * const comment = getComment.locally('foobar') * ``` * * Fetches a {@link Amity.Comment} object * * @param commentId the ID of the {@link Amity.Comment} to fetch * @returns the associated {@link Amity.Comment} object * * @category Comment API */ locally(commentId: Amity.Comment['commentId']): Amity.Cached<Amity.Comment> | undefined; }; //# sourceMappingURL=getComment.d.ts.map