interface ExecOptions {
    cwd?: string;
    env?: {
        [key: string]: string | undefined;
    };
    externalErrorHandler?: ((error) => Promise<void>);
    input?: string;
    signal?: AbortSignal;
    stderr?: "inherit" | Writable;
    stdin?: "inherit" | Readable;
    stdio?: "inherit";
    stdout?: "inherit" | Writable;
}

Properties

cwd?: string
env?: {
    [key: string]: string | undefined;
}

Type declaration

  • [key: string]: string | undefined
externalErrorHandler?: ((error) => Promise<void>)

Type declaration

    • (error): Promise<void>
    • Parameters

      • error: unknown

      Returns Promise<void>

input?: string
signal?: AbortSignal
stderr?: "inherit" | Writable
stdin?: "inherit" | Readable
stdio?: "inherit"
stdout?: "inherit" | Writable