UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

32 lines 943 B
/** * ```js * import { getFile } from '@amityco/ts-sdk-react-native' * const file = await getFile('foo') * ``` * * Fetches a {@link Amity.File} object * * @param fileId the ID of the {@link Amity.File} to fetch * @returns the associated {@link Amity.File} object * * @category File API * @async */ export declare const getFile: { <T extends Amity.FileType = any>(fileId: Amity.File<any>['fileId']): Promise<Amity.Cached<Amity.File>>; /** * ```js * import { getFile } from '@amityco/ts-sdk-react-native' * const file = getFile.locally('foo') * ``` * * Fetches a {@link Amity.File} object from cache * * @param fileId the ID of the {@link Amity.File} to fetch * @returns the associated {@link Amity.File} object * * @category File API */ locally(fileId: Amity.File<any>['fileId']): Amity.Cached<Amity.File> | undefined; }; //# sourceMappingURL=getFile.d.ts.map