@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
18 lines • 699 B
TypeScript
/**
* ```js
* import { FileRepository } from '@amityco/ts-sdk-react-native'
* const created = await FileRepository.uploadImage(formData)
* ```
*
* Creates an {@link Amity.File<'image'>}
*
* @param formData The data necessary to create a new {@link Amity.File<'image'>}
* @param onProgress The callback to track the upload progress
* @param altText The alt text for the image
* @returns The newly created {@link Amity.File<'image'>}
*
* @category File API
* @async
*/
export declare const uploadImage: (formData: FormData, onProgress?: ((percent: number) => void) | undefined, altText?: string) => Promise<Amity.Cached<Amity.File<'image'>[]>>;
//# sourceMappingURL=uploadImage.d.ts.map