18 lines
420 B
TypeScript
18 lines
420 B
TypeScript
import { ExecFileOptions } from "child_process";
|
|
|
|
export type ExecFileFn = (
|
|
cmd: string,
|
|
args: string[],
|
|
callback: (err: Error | null, stdout: string, stderr: string) => void,
|
|
options?: ExecFileOptions,
|
|
) => void;
|
|
|
|
export type ConvertFnWithExecFile = (
|
|
filePath: string,
|
|
fileType: string,
|
|
convertTo: string,
|
|
targetPath: string,
|
|
options: unknown,
|
|
execFileOverride?: ExecFileFn,
|
|
) => Promise<string>;
|