Skip to main content

Function: resolveDefaults()

resolveDefaults(...patches): BaleybotDefaults

Defined in: packages/core/src/core/defaults.ts:161

Resolve defaults from least-specific to most-specific.

Process-wide defaults are always the base. Each supplied patch is then merged in order, group by group, so a primitive-local baseline can coexist with a more specific per-invocation override instead of one patch masking the other.

Primitives call this at process time rather than construction time, so a processor built before setDefaults() still sees it.

Parameters

patches

...(DefaultsPatch | undefined)[]

Returns

BaleybotDefaults