0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

doc: fix inspect example with correct InspectOptions (#6255)

This commit is contained in:
Chris Knight 2020-06-12 13:40:32 +01:00 committed by GitHub
parent cfbc5da48c
commit ca1c2ee822
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;