Hiyve Components - v1.0.0
    Preparing search index...
    interface DownloadHandler {
        canHandle: (file: FileEntry) => boolean;
        download: (
            ctx: DownloadHandlerContext,
        ) => Promise<{ blob: Blob; fileName: string } | undefined>;
        name: string;
    }
    Index

    Properties

    canHandle: (file: FileEntry) => boolean

    Whether this handler wants to convert the given file.

    download: (
        ctx: DownloadHandlerContext,
    ) => Promise<{ blob: Blob; fileName: string } | undefined>

    Produce the bytes to save and the name to save them under. Returning undefined declines the file, and the stored file is downloaded as-is — so a conversion that fails still leaves the user with something.

    name: string

    Human-readable identifier for debugging.