Inspectable
Models
Inspectable interface
Added in v2.0.0
Source
Signature
interface Inspectable { [NodeInspectSymbol](): unknown; toJSON(): unknown; toString(): string;}Other
Signature
declare const BaseProto: InspectableSignature
declare class Class { constructor(); [NodeInspectSymbol](): unknown; abstract toJSON(): unknown; toString(): string;}Signature
declare function format(x: unknown): stringstringifyCircular
Added in v2.0.0
Source
Signature
declare function stringifyCircular(obj: unknown, whitespace?: string | number): stringSignature
declare function toJSON(x: unknown): unknowntoStringUnknown
Added in v2.0.0
Source
Signature
declare function toStringUnknown(u: unknown, whitespace: string | number | undefined): stringRedactable
isRedactable
Added in v3.10.0
Source
Signature
declare function isRedactable(u: unknown): u is RedactableSignature
declare function redact(u: unknown): unknownRedactable interface
Added in v3.10.0
Source
Signature
interface Redactable { readonly [symbolRedactable]: (fiberRefs: FiberRefs) => unknown;}symbolRedactable
Added in v3.10.0
Source
Signature
declare const symbolRedactable: unique symbolwithRedactableContext
Added in v3.10.0
Source
Signature
declare function withRedactableContext<A>(context: FiberRefs, f: () => A): ASymbols
NodeInspectSymbol
Added in v2.0.0
Source
Signature
declare const NodeInspectSymbol: typeof NodeInspectSymbolNodeInspectSymbol type
Added in v2.0.0
Source
Signature
type NodeInspectSymbol = typeof NodeInspectSymbol