From 6ee00e4da31ba040d63c756d9354391310d6f1a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 28 Apr 2020 20:11:50 +0200 Subject: refactor: change InspectOptions, make Deno.inspect stable (#4967) --- cli/js/lib.deno.ns.d.ts | 8 +------- cli/js/lib.deno.shared_globals.d.ts | 2 -- cli/js/web/console.ts | 2 -- 3 files changed, 1 insertion(+), 11 deletions(-) (limited to 'cli') 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; type InspectOptions = Partial<{ - showHidden: boolean; depth: number; - colors: boolean; indentLevel: number; }>; -- cgit v1.2.3