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 * as execa from "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
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: @types/lerna__package, @types/node, execa
Credits
These definitions were written by donmahallem.