Installation
npm install --save @types/shelljs.exec
Summary
This package contains type definitions for shelljs.exec (https://github.com/danday74/shelljs.exec#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/shelljs.exec.
index.d.ts
/// <reference types="node"/>
import { ExecSyncOptions } from "child_process";
declare namespace exec {
export interface ShellJsOptions {
silent?: boolean;
}
export interface ShellJsExecEnrich {
code: number;
ok: boolean;
stdout: string;
stderr: string;
error: any;
}
export type ShellJsExecResponse = ExecSyncOptions & ShellJsExecEnrich;
export type { ExecSyncOptions };
}
declare function exec(cmd: string, options?: ExecSyncOptions & exec.ShellJsOptions): exec.ShellJsExecResponse;
export = exec;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/node
Credits
These definitions were written by Chen Asraf.