UNPKG

@uploadcare/blocks

Version:

Building blocks for Uploadcare products integration

122 lines 2.67 kB
/** * @typedef {Object} UploadEntry * @property {File} file * @property {String} externalUrl * @property {String} fileName * @property {number} fileSize * @property {number} lastModified * @property {number} uploadProgress * @property {String} uuid * @property {Boolean} isImage * @property {String} mimeType * @property {Error} uploadError * @property {String} validationErrorMsg * @property {String} ctxName * @property {String} cdnUrl * @property {String} cdnUrlModifiers * @property {UploadcareFile} fileInfo * @property {Boolean} isUploading */ /** @type {{ [key in keyof UploadEntry]: { type; value; nullable?: Boolean } }} */ export const uploadEntrySchema: { file: { type: any; value: any; nullable?: boolean; }; externalUrl: { type: any; value: any; nullable?: boolean; }; fileName: { type: any; value: any; nullable?: boolean; }; fileSize: { type: any; value: any; nullable?: boolean; }; lastModified: { type: any; value: any; nullable?: boolean; }; uploadProgress: { type: any; value: any; nullable?: boolean; }; uuid: { type: any; value: any; nullable?: boolean; }; isImage: { type: any; value: any; nullable?: boolean; }; mimeType: { type: any; value: any; nullable?: boolean; }; uploadError: { type: any; value: any; nullable?: boolean; }; validationErrorMsg: { type: any; value: any; nullable?: boolean; }; ctxName: { type: any; value: any; nullable?: boolean; }; cdnUrl: { type: any; value: any; nullable?: boolean; }; cdnUrlModifiers: { type: any; value: any; nullable?: boolean; }; fileInfo: { type: any; value: any; nullable?: boolean; }; isUploading: { type: any; value: any; nullable?: boolean; }; }; export type UploadEntry = { file: File; externalUrl: string; fileName: string; fileSize: number; lastModified: number; uploadProgress: number; uuid: string; isImage: boolean; mimeType: string; uploadError: Error; validationErrorMsg: string; ctxName: string; cdnUrl: string; cdnUrlModifiers: string; fileInfo: UploadcareFile; isUploading: boolean; }; import { UploadcareFile } from "@uploadcare/upload-client"; //# sourceMappingURL=uploadEntrySchema.d.ts.map