Type Alias TinyimgBinding<M>
type TinyimgBinding<M = unknown> = {
module: M;
transform: (
module: M,
input: Uint8Array,
options: TinyimgTransformOptions,
) => Promise<{ bytes(): Uint8Array }>;
}
module: M;
transform: (
module: M,
input: Uint8Array,
options: TinyimgTransformOptions,
) => Promise<{ bytes(): Uint8Array }>;
}
Type Parameters
- M = unknown
Properties
module
transform
transform: (
module: M,
input: Uint8Array,
options: TinyimgTransformOptions,
) => Promise<{ bytes(): Uint8Array }>
module: M,
input: Uint8Array,
options: TinyimgTransformOptions,
) => Promise<{ bytes(): Uint8Array }>
The part of tinyimg (
@gmitch215/tinyimg) that tinyimgEncoder calls: the loadedmoduleand thetransformfunction, both from the caller's own import of the package. spool imports nothing from tinyimg.