-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "./dist/", | ||
"sourceMap": true, | ||
"allowJs": true, | ||
"lib": [ | ||
"dom", "es6" | ||
], | ||
"skipLibCheck": true | ||
}, | ||
"include": [ | ||
"magickApi.js" | ||
], | ||
"exclude": [ | ||
"node_modules", "dist" | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export interface MagickFile { | ||
name: string | ||
} | ||
|
||
export interface MagickOutputFile extends MagickFile { | ||
blob: Blob | ||
} | ||
|
||
export interface MagickInputFile extends MagickFile { | ||
/** content of the input file. This is declared as optional so higher level APIs can extend this interface but it must be initialized in order to execute convert */ | ||
content?: Uint8Array | ||
} | ||
|
||
export declare function Call(files: MagickInputFile[], command: string[]): Promise<MagickOutputFile[]> |