1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00

refactor: change InspectOptions, make Deno.inspect stable (#4967)

This commit is contained in:
Bartek Iwańczuk 2020-04-28 20:11:50 +02:00 committed by GitHub
parent 678313b176
commit 6ee00e4da3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 11 deletions

View file

@ -2326,16 +2326,10 @@ declare namespace Deno {
export const Signal: typeof MacOSSignal | typeof LinuxSignal;
interface InspectOptions {
showHidden?: boolean;
depth?: number;
colors?: boolean;
indentLevel?: number;
}
/** **UNSTABLE**: The exact form of the string output is under consideration
* and may change.
*
* Converts the input into a string that has the same format as printed by
/** Converts the input into a string that has the same format as printed by
* `console.log()`.
*
* const obj = {};

View file

@ -496,9 +496,7 @@ declare class Console {
dir: (
obj: unknown,
options?: Partial<{
showHidden: boolean;
depth: number;
colors: boolean;
indentLevel: number;
}>
) => void;

View file

@ -6,9 +6,7 @@ import { PromiseState } from "./promise.ts";
type ConsoleContext = Set<unknown>;
type InspectOptions = Partial<{
showHidden: boolean;
depth: number;
colors: boolean;
indentLevel: number;
}>;