12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- import { ChildProcessByStdio, SpawnOptions, ChildProcess } from 'child_process';
- export type Cleanup = (code: number | null, signal: null | NodeJS.Signals, processInfo: {
- watchdogPid?: ChildProcess['pid'];
- }) => void | undefined | number | NodeJS.Signals | false | Promise<void | undefined | number | NodeJS.Signals | false>;
- export type FgArgs = [program: string | [cmd: string, ...args: string[]], cleanup?: Cleanup] | [
- program: [cmd: string, ...args: string[]],
- opts?: SpawnOptions,
- cleanup?: Cleanup
- ] | [program: string, cleanup?: Cleanup] | [program: string, opts?: SpawnOptions, cleanup?: Cleanup] | [program: string, args?: string[], cleanup?: Cleanup] | [
- program: string,
- args?: string[],
- opts?: SpawnOptions,
- cleanup?: Cleanup
- ];
- export declare const normalizeFgArgs: (fgArgs: FgArgs) => [program: string, args: string[], spawnOpts: SpawnOptions, cleanup: Cleanup];
- export declare function foregroundChild(cmd: string | [cmd: string, ...args: string[]], cleanup?: Cleanup): ChildProcessByStdio<null, null, null>;
- export declare function foregroundChild(program: string, args?: string[], cleanup?: Cleanup): ChildProcessByStdio<null, null, null>;
- export declare function foregroundChild(program: string, spawnOpts?: SpawnOptions, cleanup?: Cleanup): ChildProcessByStdio<null, null, null>;
- export declare function foregroundChild(program: string, args?: string[], spawnOpts?: SpawnOptions, cleanup?: Cleanup): ChildProcessByStdio<null, null, null>;
|