diff options
author | 迷渡 <justjavac@gmail.com> | 2019-09-03 15:10:51 +0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-09-03 03:10:51 -0400 |
commit | e9908453df970b1cdf90483892bc9e794382fccc (patch) | |
tree | e27c738b6818680c2cc2f7359c876e2c8cf292e2 | |
parent | 91ba3410a30376dd0226380959ef76d27f42432b (diff) |
do not export `isConsoleInstance` (#2850)
-rw-r--r-- | js/console.ts | 2 | ||||
-rw-r--r-- | js/lib.deno_runtime.d.ts | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/js/console.ts b/js/console.ts index 2ce4b20cd..c778ee928 100644 --- a/js/console.ts +++ b/js/console.ts @@ -486,7 +486,7 @@ type PrintFunc = (x: string, isErr?: boolean) => void; const countMap = new Map<string, number>(); const timerMap = new Map<string, number>(); -export const isConsoleInstance = Symbol("isConsoleInstance"); +const isConsoleInstance = Symbol("isConsoleInstance"); export class Console { indentLevel: number; diff --git a/js/lib.deno_runtime.d.ts b/js/lib.deno_runtime.d.ts index 8ece99581..dd220d73e 100644 --- a/js/lib.deno_runtime.d.ts +++ b/js/lib.deno_runtime.d.ts @@ -1176,7 +1176,6 @@ declare namespace Deno { colors: boolean; indentLevel: number; }>; - export const isConsoleInstance: 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. */ @@ -1957,7 +1956,7 @@ declare namespace consoleTypes { static kClear: string; static kClearScreenDown: string; } - export const isConsoleInstance: unique symbol; + const isConsoleInstance: unique symbol; export class Console { private printFunc; indentLevel: number; |