diff options
author | Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com> | 2020-01-16 16:42:58 -0800 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2020-01-16 19:42:58 -0500 |
commit | 0a78bfb836f520d3709a32c8a978d08d33198d83 (patch) | |
tree | aa96e2164ea39d8856a4eca7eeb5c21388d8a4b7 /cli/js/lib.deno_runtime.d.ts | |
parent | cad7b3e4fe4e368882628dbde8512f36d142098b (diff) |
Add Deno.symbols and move internal fields for test (#3693)
Diffstat (limited to 'cli/js/lib.deno_runtime.d.ts')
-rw-r--r-- | cli/js/lib.deno_runtime.d.ts | 14 |
1 files changed, 10 insertions, 4 deletions
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 |