diff options
Diffstat (limited to 'cli/js/process.ts')
-rw-r--r-- | cli/js/process.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cli/js/process.ts b/cli/js/process.ts index ee32eac3d..0844dd8fd 100644 --- a/cli/js/process.ts +++ b/cli/js/process.ts @@ -33,14 +33,11 @@ async function runStatus(rid: number): Promise<ProcessStatus> { export class Process<T extends RunOptions = RunOptions> { readonly rid: number; readonly pid: number; - readonly stdin!: T["stdin"] extends "piped" - ? Writer & Closer + readonly stdin!: T["stdin"] extends "piped" ? Writer & Closer : (Writer & Closer) | null; - readonly stdout!: T["stdout"] extends "piped" - ? Reader & Closer + readonly stdout!: T["stdout"] extends "piped" ? Reader & Closer : (Reader & Closer) | null; - readonly stderr!: T["stderr"] extends "piped" - ? Reader & Closer + readonly stderr!: T["stderr"] extends "piped" ? Reader & Closer : (Reader & Closer) | null; // @internal |