diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-04-25 01:01:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-25 01:01:25 +0200 |
commit | 912a57f6a20c632c306f4e044df7618a3971abbf (patch) | |
tree | aa09526d214d2ab3f8d6e5c2baef605ba6d8a24a /cli/js/lib.deno.ns.d.ts | |
parent | 4a8d25646aa58e3e59d622e69c41822b40415c46 (diff) |
change type of stdio handles in JS api (#4891)
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r-- | cli/js/lib.deno.ns.d.ts | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts index 84e287fca..493ebd5e2 100644 --- a/cli/js/lib.deno.ns.d.ts +++ b/cli/js/lib.deno.ns.d.ts @@ -825,12 +825,24 @@ declare namespace Deno { close(): void; } - /** An instance of `Deno.File` for `stdin`. */ - export const stdin: File; - /** An instance of `Deno.File` for `stdout`. */ - export const stdout: File; - /** An instance of `Deno.File` for `stderr`. */ - export const stderr: File; + 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; + /** A handle for `stdout`. */ + export const stdout: Stdout; + /** A handle for `stderr`. */ + export const stderr: Stderr; export interface OpenOptions { /** Sets the option for read access. This option, when `true`, means that the |