DefinitelyTyped/types/npm-run/index.d.ts
Manuel Thalmann 0973700702 Add types for the "npm-run"-module (#36042)
* Add types for the "npm-run"-module

* Fix the code according to tslint
2019-06-13 22:00:03 -07:00

23 lines
603 B
TypeScript

// Type definitions for npm-run 5.0
// Project: https://github.com/timoxley/npm-run
// Definitions by: Manuel Thalmann <https://github.com/manuth>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
/// <reference types="node" />
import { exec, execSync, spawnSync, spawn } from "child_process";
type ExecFunction = typeof exec;
interface Runner extends ExecFunction {
exec: ExecFunction;
sync: typeof execSync;
execSync: typeof execSync;
spawnSync: typeof spawnSync;
spawn: typeof spawn;
}
declare let npmRun: Runner;
export = npmRun;