mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
implemented several other of the fixes suggested by the travic bot on "child-process-promise"'s definition file
This commit is contained in:
@@ -12,4 +12,4 @@ a.childProcess; // $ExpectType ChildProcess
|
||||
at.childProcess; // $ExpectType ChildProcess
|
||||
at.stdout; // $ExpectType string
|
||||
at.stderr; // $ExpectType string
|
||||
})();
|
||||
})();
|
||||
|
||||
+5
-2
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user