Options that control the behavior of inspect. Options specific to inspect can be set globally from INSPECT_DEFAULTS.

interface InspectOptions<T> {
    debugName?: string;
    equal?: ValueEqualityFn<NestSignalValue<T>>;
    injector?: Injector;
    reporter?: ((value: NestSignalValue<T>) => void);
    runInProdMode?: boolean;
    skipInitial?: boolean;
}

Type Parameters

  • T

Hierarchy (view full)

Properties

debugName?: string

A debug name for the signal. Used in Angular DevTools to identify the signal.

equal?: ValueEqualityFn<NestSignalValue<T>>

A comparison function which defines equality for signal values.

injector?: Injector

Needed if not created in an injection context.

reporter?: ((value: NestSignalValue<T>) => void)

Overrides the default reporter.

runInProdMode?: boolean

By default inspect will only work in dev mode. Set to true to run in prod mode.

skipInitial?: boolean

If true, then the first output is not reported. This is dependent on one when the first effect actually executes.