1.1.3 • Published 6 months ago

@types/shelljs.exec v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for shelljs.exec 1.1
// Project: https://github.com/danday74/shelljs.exec#readme
// Definitions by: Chen Asraf <https://github.com/chenasraf>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.8

/// <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: Wed, 14 Jul 2021 23:01:20 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Chen Asraf.