UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

24 lines 766 B
/** * ```js * import { PostRepository } from '@amityco/ts-sdk-react-native' * const updated = await PostRepository.editPost(postId, { * data: { text: 'hello world' } * }) * ``` * * Updates an {@link Amity.Post} * * @param postId The ID of the {@link Amity.Post} to edit * @param patch The patch data to apply * @returns the updated {@link Amity.Post} object * * @category Post API * @async */ export declare const editPost: <T extends string>(postId: Amity.Post['postId'], patch: Partial<Pick<Amity.Post<any>, "tags" | "metadata" | "data" | "mentionees" | "hashtags">> & { attachments?: { type: T; fileId: Amity.File['fileId']; }[] | undefined; }) => Promise<Amity.Cached<Amity.Post>>; //# sourceMappingURL=editPost.d.ts.map