Installation
npm install --save @types/node-cmd
Summary
This package contains type definitions for node-cmd (https://github.com/RIAEvangelist/node-cmd).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-cmd.
index.d.ts
/// <reference types="node" />
import { ChildProcess, ExecException } from "child_process";
export interface RunSyncReturn {
data: string;
err: null;
stderr: null;
}
export interface RunSyncError {
data: null;
err: string;
stderr: string;
}
export function run(
command: string,
callback?: (
error: ExecException | null,
stdout: string,
stderr: string,
) => void,
): ChildProcess;
export function runSync(command: string): RunSyncReturn | RunSyncError;
Additional Details
- Last updated: Wed, 17 Jul 2024 2240 GMT
- Dependencies: @types/node
Credits
These definitions were written by e6nlaq.