5.1.4 • Published 12 months ago
@types/lerna__child-process v5.1.4
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
// Type definitions for @lerna/child-process 5.1
// Project: https://github.com/lerna/lerna/blob/main/core/child-process
// Definitions by: donmahallem <https://github.com/donmahallem>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Wed, 08 Jun 2022 16:31:38 GMT
- Dependencies: @types/lerna__package, @types/execa
- Global values: none
Credits
These definitions were written by donmahallem.