From d9ae74019ef6982acb45d2688d71b99f2191b38d Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Tue, 20 Oct 2020 19:20:17 +0800 Subject: fix(cli): use rid getter for stdio (#8014) This changes the rid of Deno.stdin, Deno.stdout, Deno.stderr from a mutable property into a getter to match the rid semantics of Deno.File. --- cli/dts/lib.deno.ns.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/dts/lib.deno.ns.d.ts') diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index d33eb8a0b..276f13e37 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -710,11 +710,11 @@ declare namespace Deno { } /** A handle for `stdin`. */ - export const stdin: Reader & ReaderSync & Closer & { rid: number }; + export const stdin: Reader & ReaderSync & Closer & { readonly rid: number }; /** A handle for `stdout`. */ - export const stdout: Writer & WriterSync & Closer & { rid: number }; + export const stdout: Writer & WriterSync & Closer & { readonly rid: number }; /** A handle for `stderr`. */ - export const stderr: Writer & WriterSync & Closer & { rid: number }; + export const stderr: Writer & WriterSync & Closer & { readonly rid: number }; export interface OpenOptions { /** Sets the option for read access. This option, when `true`, means that the -- cgit v1.2.3