@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
36 lines • 1.63 kB
TypeScript
/**
* ```js
* import { deleteReaction } from '@amityco/ts-sdk-react-native'
* const success = await deleteReaction('post', 'foobar', 'like')
* ```
*
* Removes a {@link Amity.Reaction} from a {@link Amity.Reactable} object
*
* @param referenceType The type of thing to add a {@link Amity.Reaction} to, such as a post or a comment.
* @param referenceId The ID of the thing to add a new {@link Amity.Reaction} to.
* @param reactionName Reaction name, such as a `like` or `love`.
* @returns The removed result.
*
* @category Reaction API
* @async
* */
export declare const removeReaction: {
(referenceType: Amity.Reaction['referenceType'], referenceId: Amity.Reaction['referenceId'], reactionName: Amity.InternalReactor['reactionName']): Promise<boolean>;
/**
* ```js
* import { removeReaction } from '@amityco/ts-sdk-react-native'
* const success = removeReaction.optimistically('post', postId, 'like')
* ```
*
* Removes a {@link Amity.Reaction} from a {@link Amity.Reactable} object optimistically
*
* @param referenceType The type of thing to add a {@link Amity.Reaction} to, such as a post or a comment.
* @param referenceId The ID of the thing to add a new {@link Amity.Reaction} to.
* @param reactionName Reaction name, such as a `like` or `love`.
* @returns The added result.
*
* @category Reaction API
* */
optimistically(referenceType: Amity.ReactableType, referenceId: Amity.Reaction['referenceId'], reactionName: Amity.InternalReactor['reactionName']): boolean | undefined;
};
//# sourceMappingURL=removeReaction.d.ts.map