Skip to main content

LazySpec


Nadle / LazySpec

Interface: LazySpec<Options>

Defined in: packages/nadle/src/core/registration/api.ts:80

A branded spec thunk produced by lazy. The config portion of the wrapped spec is resolved lazily (and memoized) when first read.

Branded with a public __nadleLazySpec marker (not just the private [LAZY_SPEC] symbol) so the structural shape survives .d.ts emission: a symbol-only member is stripped, leaving {} which would match any object and defeat overload resolution.

Type Parameters

Options

Options = void

Properties

__nadleLazySpec

readonly __nadleLazySpec: true

Defined in: packages/nadle/src/core/registration/api.ts:82

Brand that survives d.ts emission so LazySpec stays distinguishable from a plain spec.