mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-06 10:10:08 +00:00
implemented several other other of the fixes suggested by the travic bot on "child-process-promise"'s definition file
This commit is contained in:
10
types/child-process-promise/index.d.ts
vendored
10
types/child-process-promise/index.d.ts
vendored
@@ -20,7 +20,7 @@ import {
|
||||
*/
|
||||
|
||||
// stop exporting everything by default
|
||||
export {}
|
||||
export {};
|
||||
|
||||
interface PromiseResult<Enc extends string|Buffer> {
|
||||
childProcess: ChildProcess;
|
||||
@@ -79,11 +79,6 @@ export function execFile(
|
||||
file: Readonly<string>,
|
||||
options: Readonly<Options & ExecFileOptionsWithStringEncoding>
|
||||
): ChildProcessPromise<PromiseResult<string>>;
|
||||
export function execFile(
|
||||
file: Readonly<string>,
|
||||
args: ReadonlyArray<string> | null,
|
||||
options: Readonly<Options & ExecFileOptionsWithStringEncoding>
|
||||
): ChildProcessPromise<PromiseResult<string>>;
|
||||
export function execFile(
|
||||
file: Readonly<string>,
|
||||
options: Readonly<Options & ExecFileOptionsWithOtherEncoding>
|
||||
@@ -95,7 +90,8 @@ export function execFile(
|
||||
): ChildProcessPromise<PromiseResult<string | Buffer>>;
|
||||
export function execFile(
|
||||
file: Readonly<string>,
|
||||
args?: ReadonlyArray<string> | null
|
||||
args?: ReadonlyArray<string> | null,
|
||||
options?: Readonly<Options & ExecFileOptionsWithStringEncoding>
|
||||
): ChildProcessPromise<PromiseResult<string>>;
|
||||
|
||||
export function spawn(
|
||||
|
||||
Reference in New Issue
Block a user