diff options
| author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-09-30 03:59:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-30 12:59:50 +1000 |
| commit | 27ee4b255107d8e074c06b57927b7349f4edd044 (patch) | |
| tree | 26bd3ba6f4de79c6873eaa5bf99432b5f04ae3d9 /cli/dts | |
| parent | 2184cf5c07b2b78ebf586b032f45ce113670262d (diff) | |
feat(cli/console): Add Deno.InspectOptions::colors (#7742)
Ref: https://github.com/denoland/deno/pull/7516#pullrequestreview-489567120
Diffstat (limited to 'cli/dts')
| -rw-r--r-- | cli/dts/lib.deno.ns.d.ts | 14 |
1 files changed, 8 insertions, 6 deletions
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<T extends RunOptions = RunOptions>(opt: T): Process<T>; 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 |
