From 0a78bfb836f520d3709a32c8a978d08d33198d83 Mon Sep 17 00:00:00 2001 From: "Kevin (Kun) \"Kassimo\" Qian" Date: Thu, 16 Jan 2020 16:42:58 -0800 Subject: Add Deno.symbols and move internal fields for test (#3693) --- cli/js/lib.deno_runtime.d.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'cli/js/lib.deno_runtime.d.ts') diff --git a/cli/js/lib.deno_runtime.d.ts b/cli/js/lib.deno_runtime.d.ts index f95236af7..d45ad2540 100644 --- a/cli/js/lib.deno_runtime.d.ts +++ b/cli/js/lib.deno_runtime.d.ts @@ -1507,10 +1507,6 @@ declare namespace Deno { colors: boolean; indentLevel: number; }>; - /** A symbol which can be used as a key for a custom method which will be called - * when `Deno.inspect()` is called, or when the object is logged to the console. - */ - export const customInspect: unique symbol; /** * `inspect()` converts input into string that has the same format * as printed by `console.log(...)`; @@ -1947,6 +1943,16 @@ declare namespace Deno { // @url js/deno.d.ts export const args: string[]; + + /** Special Deno related symbols. */ + export const symbols: { + /** Symbol to access exposed internal Deno API */ + readonly internal: unique symbol; + /** A symbol which can be used as a key for a custom method which will be called + * when `Deno.inspect()` is called, or when the object is logged to the console. + */ + readonly customInspect: unique symbol; + }; } // @url js/globals.ts -- cgit v1.2.3