mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 23:34:47 -05:00
refactor: change InspectOptions, make Deno.inspect stable (#4967)
This commit is contained in:
parent
678313b176
commit
6ee00e4da3
3 changed files with 1 additions and 11 deletions
8
cli/js/lib.deno.ns.d.ts
vendored
8
cli/js/lib.deno.ns.d.ts
vendored
|
@ -2326,16 +2326,10 @@ declare namespace Deno {
|
||||||
export const Signal: typeof MacOSSignal | typeof LinuxSignal;
|
export const Signal: typeof MacOSSignal | typeof LinuxSignal;
|
||||||
|
|
||||||
interface InspectOptions {
|
interface InspectOptions {
|
||||||
showHidden?: boolean;
|
|
||||||
depth?: number;
|
depth?: number;
|
||||||
colors?: boolean;
|
|
||||||
indentLevel?: number;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** **UNSTABLE**: The exact form of the string output is under consideration
|
/** Converts the input into a string that has the same format as printed by
|
||||||
* and may change.
|
|
||||||
*
|
|
||||||
* Converts the input into a string that has the same format as printed by
|
|
||||||
* `console.log()`.
|
* `console.log()`.
|
||||||
*
|
*
|
||||||
* const obj = {};
|
* const obj = {};
|
||||||
|
|
2
cli/js/lib.deno.shared_globals.d.ts
vendored
2
cli/js/lib.deno.shared_globals.d.ts
vendored
|
@ -496,9 +496,7 @@ declare class Console {
|
||||||
dir: (
|
dir: (
|
||||||
obj: unknown,
|
obj: unknown,
|
||||||
options?: Partial<{
|
options?: Partial<{
|
||||||
showHidden: boolean;
|
|
||||||
depth: number;
|
depth: number;
|
||||||
colors: boolean;
|
|
||||||
indentLevel: number;
|
indentLevel: number;
|
||||||
}>
|
}>
|
||||||
) => void;
|
) => void;
|
||||||
|
|
|
@ -6,9 +6,7 @@ import { PromiseState } from "./promise.ts";
|
||||||
|
|
||||||
type ConsoleContext = Set<unknown>;
|
type ConsoleContext = Set<unknown>;
|
||||||
type InspectOptions = Partial<{
|
type InspectOptions = Partial<{
|
||||||
showHidden: boolean;
|
|
||||||
depth: number;
|
depth: number;
|
||||||
colors: boolean;
|
|
||||||
indentLevel: number;
|
indentLevel: number;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue