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:
parent
cfbc5da48c
commit
ca1c2ee822
1 changed files with 2 additions and 2 deletions
4
cli/js/lib.deno.ns.d.ts
vendored
4
cli/js/lib.deno.ns.d.ts
vendored
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue