summaryrefslogtreecommitdiff
path: root/cli/js/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-07-11 05:52:18 +0100
committerGitHub <noreply@github.com>2020-07-11 00:52:18 -0400
commit5ec41cbcc2778a80b6ee91f0c391fc2edec0a8e0 (patch)
tree71d44638e72871624aef63deca19eb271ffa8604 /cli/js/lib.deno.ns.d.ts
parent40d081d3d9f64bcd2524da86fb78808ac1d7b888 (diff)
feat(Deno.inspect): Add sorted, trailingComma, compact and iterableLimit to InspectOptions (#6591)
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r--cli/js/lib.deno.ns.d.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts
index 41243d0ca..32b9bb39b 100644
--- a/cli/js/lib.deno.ns.d.ts
+++ b/cli/js/lib.deno.ns.d.ts
@@ -2034,8 +2034,18 @@ declare namespace Deno {
| PluginPermissionDescriptor
| HrtimePermissionDescriptor;
- interface InspectOptions {
+ 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;
+ /** Try to fit more than one entry of a collection on the same line.
+ * Defaults to true. */
+ compact?: boolean;
+ /** The maximum number of iterable entries to print. Defaults to 100. */
+ iterableLimit?: number;
}
/** Converts the input into a string that has the same format as printed by