@adonis-agora/media
Version:
Media-library for AdonisJS — owner collections (MIME whitelist, single-file replace, ordering), image conversions (eager/lazy), pluggable content transformers (HLS video via mediabunny, metadata probe, image blur-up placeholder), and column attachments, a
10 lines • 645 B
TypeScript
import type { Disk, MultipartUploadDisk } from './types.js';
/**
* Structural guard: does this disk implement the optional {@link MultipartUploadDisk} surface?
* The base {@link Disk} contract deliberately omits multipart, so the upload layer detects it here
* at runtime (the bundled `disks.s3()` disk provides it; the in-memory/Drive disks do not) rather
* than depending on it statically. A disk is treated as multipart-capable when it exposes the whole
* create/upload/presign/complete/abort surface.
*/
export declare function isMultipartCapable(disk: Disk): disk is Disk & MultipartUploadDisk;
//# sourceMappingURL=multipart.d.ts.map