mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
Signed-off-by: agape1225 <49804691+agape1225@users.noreply.github.com> PR-URL: https://github.com/nodejs/node/pull/65996 Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
34 lines
847 B
TypeScript
34 lines
847 B
TypeScript
type SpawnSyncStdio =
|
|
| { type: 'ignore' }
|
|
| { type: 'pipe'; readable: boolean; writable: boolean; input?: ArrayBufferView }
|
|
| { type: 'inherit'; fd: number }
|
|
| { type: 'fd'; fd: number };
|
|
|
|
export interface SpawnSyncOptions {
|
|
file: string;
|
|
args: readonly string[];
|
|
cwd?: string | null;
|
|
envPairs?: readonly string[] | null;
|
|
uid?: number | null;
|
|
gid?: number | null;
|
|
detached?: boolean;
|
|
windowsHide?: boolean;
|
|
windowsVerbatimArguments?: boolean;
|
|
timeout?: number | null;
|
|
maxBuffer?: number | null;
|
|
killSignal?: number | null;
|
|
stdio: readonly SpawnSyncStdio[];
|
|
}
|
|
|
|
export interface SpawnSyncResult {
|
|
error?: number;
|
|
status: number | null;
|
|
signal: string | null;
|
|
output: (Uint8Array | null)[] | null;
|
|
pid: number;
|
|
}
|
|
|
|
export interface SpawnSyncBinding {
|
|
spawn(options: SpawnSyncOptions): SpawnSyncResult;
|
|
}
|