UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

32 lines 1.02 kB
/** * ```js * import { getMessage } from '@amityco/ts-sdk-react-native' * const message = await getMessage('foobar') * ``` * * Fetches a {@link Amity.InternalMessage} object * * @param messageId the ID of the {@link Amity.Message} to fetch * @returns the associated {@link Amity.Message} object * * @category Message API * @async */ export declare const getMessage: { (messageId: Amity.Message['messageId'], isLive?: boolean): Promise<Amity.Cached<Amity.InternalMessage>>; /** * ```js * import { getMessage } from '@amityco/ts-sdk-react-native' * const message = getMessage.locally('foobar') * ``` * * Fetches a {@link Amity.Message} object * * @param messageId the ID of the {@link Amity.Message} to fetch * @returns the associated {@link Amity.Message} object * * @category Message API */ locally(messageId: Amity.Message['messageId']): Amity.Cached<Amity.InternalMessage> | undefined; }; //# sourceMappingURL=getMessage.d.ts.map