mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 23:34:47 -05:00
refactor: remove stdio interfaces, use intersection types (#4952)
This commit is contained in:
parent
e6f70c77ee
commit
76641eb05e
1 changed files with 3 additions and 15 deletions
18
cli/js/lib.deno.ns.d.ts
vendored
18
cli/js/lib.deno.ns.d.ts
vendored
|
@ -776,24 +776,12 @@ declare namespace Deno {
|
|||
close(): void;
|
||||
}
|
||||
|
||||
export interface Stdin extends Reader, SyncReader, Closer {
|
||||
readonly rid: number;
|
||||
}
|
||||
|
||||
export interface Stdout extends Writer, SyncWriter, Closer {
|
||||
readonly rid: number;
|
||||
}
|
||||
|
||||
export interface Stderr extends Writer, SyncWriter, Closer {
|
||||
readonly rid: number;
|
||||
}
|
||||
|
||||
/** A handle for `stdin`. */
|
||||
export const stdin: Stdin;
|
||||
export const stdin: Reader & SyncReader & Closer & { rid: number };
|
||||
/** A handle for `stdout`. */
|
||||
export const stdout: Stdout;
|
||||
export const stdout: Writer & SyncWriter & Closer & { rid: number };
|
||||
/** A handle for `stderr`. */
|
||||
export const stderr: Stderr;
|
||||
export const stderr: Writer & SyncWriter & Closer & { rid: number };
|
||||
|
||||
export interface OpenOptions {
|
||||
/** Sets the option for read access. This option, when `true`, means that the
|
||||
|
|
Loading…
Reference in a new issue