@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
25 lines • 804 B
TypeScript
/**
* ```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;
links?: Amity.Link[] | undefined;
}) => Promise<Amity.Cached<Amity.Post>>;
//# sourceMappingURL=editPost.d.ts.map