From 61d9952ff93d8dff26f6f3adb955affe09a951bc Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Tue, 7 Jul 2020 11:21:49 +0100 Subject: fix(cli/js/process): Fix process socket types (#6676) --- cli/js/lib.deno.ns.d.ts | 4 ++-- cli/js/process.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'cli/js') diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts index 82b3fc829..2137ce336 100644 --- a/cli/js/lib.deno.ns.d.ts +++ b/cli/js/lib.deno.ns.d.ts @@ -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; /** Buffer the stdout until EOF and return it as `Uint8Array`. diff --git a/cli/js/process.ts b/cli/js/process.ts index ff9251697..6f45081dc 100644 --- a/cli/js/process.ts +++ b/cli/js/process.ts @@ -38,10 +38,10 @@ export class Process { : (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) { -- cgit v1.2.3