summaryrefslogtreecommitdiff
path: root/cli/js/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-04-28 00:06:03 +0100
committerGitHub <noreply@github.com>2020-04-28 01:06:03 +0200
commit4041a7b8576047021c2eec711f013c6f01e471e0 (patch)
treee49ade03d1d888ea83a9fccf51ba8742a6365cc7 /cli/js/lib.deno.ns.d.ts
parent2f0641885c62ba6a1e58ae0030f635efd3f35b2a (diff)
BREAKING: Remove Deno.symbols namespace (#4936)
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r--cli/js/lib.deno.ns.d.ts20
1 files changed, 6 insertions, 14 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts
index d2106b4f8..835f2a95c 100644
--- a/cli/js/lib.deno.ns.d.ts
+++ b/cli/js/lib.deno.ns.d.ts
@@ -379,7 +379,7 @@ declare namespace Deno {
*/
export function umask(mask?: number): number;
- /** **UNSTABLE**: might move to `Deno.symbols`. */
+ /** **UNSTABLE**: might be removed in favor of `null` (#3932). */
export const EOF: unique symbol;
export type EOF = typeof EOF;
@@ -2338,7 +2338,7 @@ declare namespace Deno {
* class A {
* x = 10;
* y = "hello";
- * [Deno.symbols.customInspect](): string {
+ * [Deno.customInspect](): string {
* return "x=" + this.x + ", y=" + this.y;
* }
* }
@@ -2860,16 +2860,8 @@ declare namespace Deno {
windowChange: () => SignalStream;
};
- /** **UNSTABLE**: new API. Maybe move `Deno.EOF` here.
- *
- * 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;
- // TODO(ry) move EOF here?
- };
+ /** 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;
}