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:
parent
9e0bc25142
commit
61d9952ff9
2 changed files with 4 additions and 4 deletions
4
cli/js/lib.deno.ns.d.ts
vendored
4
cli/js/lib.deno.ns.d.ts
vendored
|
@ -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`.
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue