UNPKG

@amityco/ts-sdk

Version:

Amity Social Cloud Typescript SDK

18 lines 705 B
declare type CreateCommentBundle = Pick<Amity.Comment<Amity.CommentContentType>, 'data' | 'referenceType' | 'referenceId' | 'parentId' | 'metadata' | 'mentionees' | 'attachments' | 'links'>; /** * ```js * import { CommentRepository } from '@amityco/ts-sdk' * const newComment = await CommentRepository.createComment(bundle) * ``` * * Creates an {@link Amity.Comment} * * @param bundle The data necessary to create a new {@link Amity.Comment} * @returns The newly created {@link Amity.Comment} * * @category Comment API * @async */ export declare const createComment: (bundle: CreateCommentBundle) => Promise<Amity.Cached<Amity.Comment>>; export {}; //# sourceMappingURL=createComment.d.ts.map