@types/shelljs.exec
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/shelljs.exec

Weekly Downloads

138

Version

1.1.3

License

MIT

Unpacked Size

3.8 kB

Total Files

5

Last publish

Collaborators

  • types