10 lines
337 B
TypeScript
10 lines
337 B
TypeScript
|
/// <reference types="node" />
|
||
|
import * as cp from 'child_process';
|
||
|
export interface IForkOpts {
|
||
|
cwd?: string;
|
||
|
env?: any;
|
||
|
encoding?: string;
|
||
|
execArgv?: string[];
|
||
|
}
|
||
|
export declare function fork(modulePath: string, args: string[], options: IForkOpts, callback: (error: any, cp: cp.ChildProcess | undefined) => void): void;
|