You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
608 B

/// <reference types="node" />
export namespace ProcessOnSpawn {
export interface SpawnOptions {
env: NodeJS.ProcessEnv
cwd: string
execPath: string
args: ReadonlyArray<string>
detached: boolean
uid?: number
gid?: number
windowsVerbatimArguments: boolean
windowsHide: boolean
}
export type Handler = (opts: SpawnOptions) => any
}
export function addListener(fn: ProcessOnSpawn.Handler): void
export function prependListener(fn: ProcessOnSpawn.Handler): void
export function removeListener(fn: ProcessOnSpawn.Handler): void
export function removeAllListeners(): void