Skip to main content
function assertValidCpsatRuleRegistry<Registry>(ruleRegistry): Registry;
Validates that each rule registry key matches the descriptor name it points to.

Type Parameters

Registry

Registry extends CpsatRuleRegistry

Parameters

ruleRegistry
Registry
required

Returns

Registry
This enforces the invariant required by registry-driven config typing and by runtime rule resolution. A registry entry like { debug: descriptorNamedFoo } is rejected because the key and descriptor identity diverge.