1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00

fix(cli/js/process): Fix process socket types (#6676)

This commit is contained in:
Nayeem Rahman 2020-07-07 11:21:49 +01:00 committed by GitHub
parent 9e0bc25142
commit 61d9952ff9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -1804,10 +1804,10 @@ declare namespace Deno {
: (Writer & Closer) | null;
readonly stdout: T["stdout"] extends "piped"
? Reader & Closer
: (Writer & Closer) | null;
: (Reader & Closer) | null;
readonly stderr: T["stderr"] extends "piped"
? Reader & Closer
: (Writer & Closer) | null;
: (Reader & Closer) | null;
/** Resolves to the current status of the process. */
status(): Promise<ProcessStatus>;
/** Buffer the stdout until EOF and return it as `Uint8Array`.

View file

@ -38,10 +38,10 @@ export class Process<T extends RunOptions = RunOptions> {
: (Writer & Closer) | null;
readonly stdout!: T["stdout"] extends "piped"
? Reader & Closer
: (Writer & Closer) | null;
: (Reader & Closer) | null;
readonly stderr!: T["stderr"] extends "piped"
? Reader & Closer
: (Writer & Closer) | null;
: (Reader & Closer) | null;
// @internal
constructor(res: RunResponse) {