Interface InspectionOptions
Source: inspect.ts
Configuration options for the inspection utilities.
See
Properties
depth?
optionaldepth?:number
The maximum depth for representations of container values (e.g., objects, arrays).
Default
2maxArrayLength?
optionalmaxArrayLength?:number
The maximum number of array elements to represent before truncating.
Default
100maxStringLength?
optionalmaxStringLength?:number
The maximum amount of characters of a string to represent, before replacing the remainder with an ellipsis.
Default
80breakLength?
optionalbreakLength?:number
The maximum line length before wrapping to a new line.
This option is ignored when compact is set to true.
Default
60compact?
optionalcompact?:boolean
true keeps container values on a single line when possible.
Default
truesortKeys?
optionalsortKeys?:boolean
true enables the sorting of keys in object representations.
Default
falsesingleQuotes?
optionalsingleQuotes?:boolean
true uses single quotes instead of double quotes.
Default
falsespaceAfterComma?
optionalspaceAfterComma?:boolean
true places a space after every comma.
Default
trueplugins?
optionalplugins?:InspectionPlugin[]
Plugins to extend, override or configure the inspection process.
colors?
optionalcolors?:false| {string?:string|null;number?:string|null;boolean?:string|null;null?:string|null;undefined?:string|null;bigint?:string|null;symbol?:string|null;function?:string|null;key?:string|null;date?:string|null;regExp?:string|null;error?:string|null;htmlTag?:string|null;reactComponent?:string|null;delimiter?:string|null; }
The ANSI color codes for different symbols.
Set to false to disable ANSI colors.
Union Members
false
Type Literal
{ string?: string | null; number?: string | null; boolean?: string | null; null?: string | null; undefined?: string | null; bigint?: string | null; symbol?: string | null; function?: string | null; key?: string | null; date?: string | null; regExp?: string | null; error?: string | null; htmlTag?: string | null; reactComponent?: string | null; delimiter?: string | null; }
string?
optionalstring?:string|null
The color to apply to strings.
Default
ANSI.fg.greennumber?
optionalnumber?:string|null
The color to apply to numbers.
Default
ANSI.fg.yellowboolean?
optionalboolean?:string|null
The color to apply to booleans.
Default
ANSI.fg.yellownull?
optionalnull?:string|null
The color to apply to null keywords.
Default
undefined?
optionalundefined?:string|null
The color to apply to undefined keywords.
Default
bigint?
optionalbigint?:string|null
The color to apply to bigints.
Default
ANSI.fg.yellowsymbol?
optionalsymbol?:string|null
The color to apply to symbols.
Default
ANSI.fg.greenfunction?
optionalfunction?:string|null
The color to apply to functions.
Default
ANSI.fg.bluekey?
optionalkey?:string|null
The color to apply to keys.
Default
ANSI.fg.whitedate?
optionaldate?:string|null
The color to apply to dates.
Default
ANSI.fg.magentaregExp?
optionalregExp?:string|null
The color to apply to RegExps.
Default
ANSI.fg.cyanerror?
optionalerror?:string|null
The color to apply to errors.
Default
ANSI.fg.redhtmlTag?
optionalhtmlTag?:string|null
The color to apply to HTML tags.
Default
ANSI.fg.redreactComponent?
optionalreactComponent?:string|null
The color to apply to React components.
Default
ANSI.fg.yellowdelimiter?
optionaldelimiter?:string|null
The color to apply to delimiters.
Default
ANSI.fg.cyan