implemented several other of the fixes suggested by the travic bot on "child-process-promise"'s definition file

This commit is contained in:
Luis
2019-03-21 13:10:14 +00:00
parent 623762f7ad
commit a45e83be1b
2 changed files with 6 additions and 3 deletions
@@ -12,4 +12,4 @@ a.childProcess; // $ExpectType ChildProcess
at.childProcess; // $ExpectType ChildProcess
at.stdout; // $ExpectType string
at.stderr; // $ExpectType string
})();
})();
+5 -2
View File
@@ -1,4 +1,4 @@
// Type definitions for child-process-promise 2.2.1
// Type definitions for child-process-promise 2.2
// Project: https://github.com/patrick-steele-idem/child-process-promise
// Definitions by: Luis Paulo <https://github.com/TheDSCPL>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -19,6 +19,9 @@ import {
* Simple wrapper around the child_process module that makes use of promises
*/
// stop exporting everything by default
export {}
interface PromiseResult<Enc extends string|Buffer> {
childProcess: ChildProcess;
stdout: Enc;
@@ -105,4 +108,4 @@ export function fork(
modulePath: string,
args?: ReadonlyArray<string>,
options?: Readonly<Options & ForkOptions>
): ChildProcessPromise<SpawnPromiseResult>;
): ChildProcessPromise<SpawnPromiseResult>;