summaryrefslogtreecommitdiff
path: root/cli/js
diff options
context:
space:
mode:
authorChris Knight <cknight1234@gmail.com>2020-06-12 13:40:32 +0100
committerGitHub <noreply@github.com>2020-06-12 14:40:32 +0200
commitca1c2ee82207f2ead857ab4aeca48edff16827ae (patch)
tree59915558df79324a864a77f25497064601a82997 /cli/js
parentcfbc5da48c0b2285d0c11da0d71d720d5cae538f (diff)
doc: fix inspect example with correct InspectOptions (#6255)
Diffstat (limited to 'cli/js')
-rw-r--r--cli/js/lib.deno.ns.d.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts
index c50c71d46..c70eca68e 100644
--- a/cli/js/lib.deno.ns.d.ts
+++ b/cli/js/lib.deno.ns.d.ts
@@ -1894,9 +1894,9 @@ declare namespace Deno {
* const inStringFormat = Deno.inspect(new A()); // "x=10, y=hello"
* console.log(inStringFormat); // prints "x=10, y=hello"
*
- * Finally, a number of output options are also available.
+ * Finally, you can also specify the depth to which it will format.
*
- * const out = Deno.inspect(obj, {showHidden: true, depth: 4, colors: true, indentLevel: 2});
+ * Deno.inspect({a: {b: {c: {d: 'hello'}}}}, {depth: 2}); // { a: { b: [Object] } }
*
*/
export function inspect(value: unknown, options?: InspectOptions): string;