npm.io
5.1.5 • Published 11 months ago

@types/lerna__child-process

Licence
MIT
Version
5.1.5
Deps
3
Size
5 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/lerna__child-process

Summary

This package contains type definitions for @lerna/child-process (https://github.com/lerna/lerna/blob/main/core/child-process).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lerna__child-process.

index.d.ts

import { Package } from "@lerna/package";
import execa = require("execa");

export type ExecutionError = execa.ExecaError & { exitCode: number; pkg?: Package };
export type ExecutionResult = execa.ExecaChildProcess & { pkg?: Package };
export function exec(command: string, args: string[], opts?: execa.Options): ExecutionResult;

export function execSync(
    command: string,
    args: string[],
    opts?: execa.SyncOptions,
): ReturnType<typeof execa.sync>["stdout"];

export function getChildProcessCount(): number;

export function getExitCode(result: execa.ExecaError): number;

export function spawn(command: string, args: string[], opts?: execa.Options): ExecutionResult;

export function spawnStreaming(command: string, args: string[], opts?: execa.Options, prefix?: string): ExecutionResult;

export interface ExecOpts {
    cwd: string;
    maxBuffer?: number;
}

Additional Details

Credits

These definitions were written by donmahallem.