@types/lerna__child-process
TypeScript icon, indicating that this package has built-in type declarations

5.1.4 • Public • Published

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

Credits

These definitions were written by donmahallem.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/lerna__child-process

Weekly Downloads

1,646

Version

5.1.4

License

MIT

Unpacked Size

4.66 kB

Total Files

5

Last publish

Collaborators

  • types