28 lines
526 B
TypeScript
28 lines
526 B
TypeScript
|
export type ImageMagickConvertFile = [string, Buffer];
|
||
|
|
||
|
type ImageMagickFile = {
|
||
|
content: Buffer;
|
||
|
name: string;
|
||
|
};
|
||
|
|
||
|
type ImageMagickConvertedFile = {
|
||
|
blob: Blob;
|
||
|
name: string;
|
||
|
};
|
||
|
|
||
|
declare global {
|
||
|
interface Window {
|
||
|
["wasm-imagemagick"]: {
|
||
|
call: (
|
||
|
files: ImageMagickFile[],
|
||
|
command: string[]
|
||
|
) => Promise<{
|
||
|
exitCode: number;
|
||
|
outputFiles: ImageMagickConvertedFile[];
|
||
|
stderr: string[];
|
||
|
stdout: string[];
|
||
|
}>;
|
||
|
};
|
||
|
}
|
||
|
}
|