From 27ee4b255107d8e074c06b57927b7349f4edd044 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Wed, 30 Sep 2020 03:59:50 +0100 Subject: feat(cli/console): Add Deno.InspectOptions::colors (#7742) Ref: https://github.com/denoland/deno/pull/7516#pullrequestreview-489567120 --- cli/dts/lib.deno.ns.d.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'cli/dts') diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index 141e66a24..f2845f492 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -1941,19 +1941,21 @@ declare namespace Deno { export function run(opt: T): Process; export interface InspectOptions { - /** Traversal depth for nested objects. Defaults to 4. */ - depth?: number; - /** Sort Object, Set and Map entries by key. Defaults to false. */ - sorted?: boolean; - /** Add a trailing comma for multiline collections. Defaults to false. */ - trailingComma?: boolean; + /** Stylize output with ANSI colors. Defaults to false. */ + colors?: boolean; /** Try to fit more than one entry of a collection on the same line. * Defaults to true. */ compact?: boolean; + /** Traversal depth for nested objects. Defaults to 4. */ + depth?: number; /** The maximum number of iterable entries to print. Defaults to 100. */ iterableLimit?: number; /** Show a Proxy's target and handler. Defaults to false. */ showProxy?: boolean; + /** Sort Object, Set and Map entries by key. Defaults to false. */ + sorted?: boolean; + /** Add a trailing comma for multiline collections. Defaults to false. */ + trailingComma?: boolean; } /** Converts the input into a string that has the same format as printed by -- cgit v1.2.3