UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

16 lines 930 B
import { EntityUploaderState } from '@/utils/hooks/useUploadFileEntity/useUploadFileEntities'; export type EntityUploadProps = { /** The ID of the entity to upload to. If this is a container, file(s) will be added as children. If this is a * FileEntity, then a file may be uploaded as a new version */ entityId: string; /** Callback that is invoked when the state of the uploader changes */ onStateChange?: (state: EntityUploaderState) => void; /** Callback that is invoked when component is ready to upload */ onUploadReady?: () => void; }; export type EntityUploadHandle = { /** Programmatically add files to the upload (e.g. on drag & drop) */ handleUploads: (fileList: ArrayLike<File>) => void; }; export declare const EntityUpload: import("react").ForwardRefExoticComponent<EntityUploadProps & import("react").RefAttributes<EntityUploadHandle>>; //# sourceMappingURL=EntityUpload.d.ts.map