Download src/converters/types.ts from linuxrun/convert: direct link, hf CLI and curl.
- Browser
- Download file 420 Bytes
-
https://huggingface.co/spaces/linuxrun/convert/resolve/main/src/converters/types.ts
- Command line
-
hf download hf://spaces/linuxrun/convert/src/converters/types.ts
-
curl -L -o types.ts https://huggingface.co/spaces/linuxrun/convert/resolve/main/src/converters/types.ts
420 Bytes
| 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>; | |