UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

32 lines 999 B
/** * ```js * import { EventRepository } from '@amityco/ts-sdk-react-native' * const event = await EventRepository.getEvent(eventId) * ``` * * Fetches a {@link Amity.Event} object * * @param eventId the ID of the {@link Amity.Event} to fetch * @returns the associated {@link Amity.Event} object * * @category Event API * @async */ export declare const getEvent: { (eventId: Amity.InternalEvent['eventId']): Promise<Amity.Cached<Amity.InternalEvent>>; /** * ```js * import { EventRepository } from '@amityco/ts-sdk-react-native' * const event = EventRepository.getEvent.locally(eventId) * ``` * * Fetches a {@link Amity.Event} object in cache * * @param eventId the ID of the {@link Amity.Event} to fetch * @returns the associated {@link Amity.Event} object * * @category Event API */ locally(eventId: Amity.Event['eventId']): Amity.Cached<Amity.InternalEvent> | undefined; }; //# sourceMappingURL=getEvent.d.ts.map