summaryrefslogtreecommitdiff
path: root/cli/js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-28 20:11:50 +0200
committerGitHub <noreply@github.com>2020-04-28 20:11:50 +0200
commit6ee00e4da31ba040d63c756d9354391310d6f1a7 (patch)
treefc91e097f8da4270dcd734c9aa9a792c4a4d5628 /cli/js
parent678313b17677e012ba9a07aeca58af1aafbf4e8c (diff)
refactor: change InspectOptions, make Deno.inspect stable (#4967)
Diffstat (limited to 'cli/js')
-rw-r--r--cli/js/lib.deno.ns.d.ts8
-rw-r--r--cli/js/lib.deno.shared_globals.d.ts2
-rw-r--r--cli/js/web/console.ts2
3 files changed, 1 insertions, 11 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts
index 5defc5732..b73ad4c20 100644
--- a/cli/js/lib.deno.ns.d.ts
+++ b/cli/js/lib.deno.ns.d.ts
@@ -2326,16 +2326,10 @@ declare namespace Deno {
export const Signal: typeof MacOSSignal | typeof LinuxSignal;
interface InspectOptions {
- showHidden?: boolean;
depth?: number;
- colors?: boolean;
- indentLevel?: number;
}
- /** **UNSTABLE**: The exact form of the string output is under consideration
- * and may change.
- *
- * Converts the input into a string that has the same format as printed by
+ /** Converts the input into a string that has the same format as printed by
* `console.log()`.
*
* const obj = {};
diff --git a/cli/js/lib.deno.shared_globals.d.ts b/cli/js/lib.deno.shared_globals.d.ts
index bcc3ce890..ef870d2aa 100644
--- a/cli/js/lib.deno.shared_globals.d.ts
+++ b/cli/js/lib.deno.shared_globals.d.ts
@@ -496,9 +496,7 @@ declare class Console {
dir: (
obj: unknown,
options?: Partial<{
- showHidden: boolean;
depth: number;
- colors: boolean;
indentLevel: number;
}>
) => void;
diff --git a/cli/js/web/console.ts b/cli/js/web/console.ts
index 4709697d2..1a0202ab8 100644
--- a/cli/js/web/console.ts
+++ b/cli/js/web/console.ts
@@ -6,9 +6,7 @@ import { PromiseState } from "./promise.ts";
type ConsoleContext = Set<unknown>;
type InspectOptions = Partial<{
- showHidden: boolean;
depth: number;
- colors: boolean;
indentLevel: number;
}>;