mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
23 lines
603 B
TypeScript
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;
|