Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

Inspectable

14 exports Since v2.0.0 Source

Models

Inspectable

interface
Since v2.0.0

Signature

interface Inspectable {
[NodeInspectSymbol](): unknown;
toJSON(): unknown;
toString(): string;
}

Other

Signature

declare const BaseProto: Inspectable
Since v2.0.0

Signature

declare class Class {
constructor();
[NodeInspectSymbol](): unknown;
abstract toJSON(): unknown;
toString(): string;
}
Since v2.0.0

Signature

declare function format(x: unknown): string

Signature

declare function stringifyCircular(obj: unknown, whitespace?: string | number): string
Since v2.0.0

Signature

declare function toJSON(x: unknown): unknown

Signature

declare function toStringUnknown(u: unknown, whitespace: string | number | undefined): string

Redactable

Signature

declare function isRedactable(u: unknown): u is Redactable
Since v3.10.0

Signature

declare function redact(u: unknown): unknown

Redactable

interface
Since v3.10.0

Signature

interface Redactable {
readonly [symbolRedactable]: (fiberRefs: FiberRefs) => unknown;
}

Signature

declare const symbolRedactable: unique symbol

Signature

declare function withRedactableContext<A>(context: FiberRefs, f: () => A): A

Symbols

Signature

declare const NodeInspectSymbol: typeof NodeInspectSymbol

Signature

type NodeInspectSymbol = typeof NodeInspectSymbol