UNPKG

@uploadcare/file-uploader

Version:

Building blocks for Uploadcare products integration

66 lines 2.01 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 {String} ctxName * @property {String} cdnUrl * @property {String} cdnUrlModifiers * @property {UploadcareFile} fileInfo * @property {Boolean} isUploading * @property {String} thumbUrl * @property {Boolean} silent * @property {({ * type: import('..').OutputFileErrorType | import('..').OutputCollectionErrorType; * message: string; * } & Record<string, unknown>)[]} errors * @property {Error | null} uploadError * @property {string | null} fullPath * @property {import('@uploadcare/upload-client').Metadata | null} metadata * @property {boolean} isRemoved * @property {String} source */ /** * @template {keyof UploadEntry} K * @type {Record<K, { type: Function; value: any; nullable?: Boolean }>} */ export const uploadEntrySchema: Record<K, { type: Function; 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; ctxName: string; cdnUrl: string; cdnUrlModifiers: string; fileInfo: UploadcareFile; isUploading: boolean; thumbUrl: string; silent: boolean; errors: ({ type: import('..').OutputFileErrorType | import('..').OutputCollectionErrorType; message: string; } & Record<string, unknown>)[]; uploadError: Error | null; fullPath: string | null; metadata: import('@uploadcare/upload-client').Metadata | null; isRemoved: boolean; source: string; }; import { UploadcareFile } from '@uploadcare/upload-client'; //# sourceMappingURL=uploadEntrySchema.d.ts.map