Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface InspectOptions

Hierarchy

  • InspectOptions

Index

Properties

Optional breakLength

breakLength: undefined | number

Optional colors

colors: undefined | boolean

Optional compact

compact: undefined | number | boolean

Setting this to false causes each object key to be displayed on a new line. It will also add new lines to text that is longer than breakLength. If set to a number, the most n inner elements are united on a single line as long as all properties fit into breakLength. Short array elements are also grouped together. Note that no text will be reduced below 16 characters, no matter the breakLength size. For more information, see the example below.

default

true

Optional customInspect

customInspect: undefined | boolean

Optional depth

depth: undefined | null | number
default

2

Optional getters

getters: undefined | boolean | "get" | "set"

If set to true, getters are going to be inspected as well. If set to 'get' only getters without setter are going to be inspected. If set to 'set' only getters having a corresponding setter are going to be inspected. This might cause side effects depending on the getter function.

default

false

Optional maxArrayLength

maxArrayLength: undefined | null | number

Optional showHidden

showHidden: undefined | boolean

Optional showProxy

showProxy: undefined | boolean

Optional sorted

sorted: undefined | boolean | ((a: string, b: string) => number)

Generated using TypeDoc