Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias TinyimgBinding<M>

    The part of tinyimg (@gmitch215/tinyimg) that tinyimgEncoder calls: the loaded module and the transform function, both from the caller's own import of the package. spool imports nothing from tinyimg.

    type TinyimgBinding<M = unknown> = {
        module: M;
        transform: (
            module: M,
            input: Uint8Array,
            options: TinyimgTransformOptions,
        ) => Promise<{ bytes(): Uint8Array }>;
    }

    Type Parameters

    • M = unknown
    Index
    module: M
    transform: (
        module: M,
        input: Uint8Array,
        options: TinyimgTransformOptions,
    ) => Promise<{ bytes(): Uint8Array }>