Skip to main content
type CpsatRuleConfigEntryFor<Registry> = { [K in keyof Registry & string]: { name: K } & InferCpsatRuleConfig<Registry[K]> }[keyof Registry & string];
Builds the discriminated rule-entry union for a rule registry.

Type Parameters

Registry

Registry extends CpsatRuleRegistry This preserves the pairing between each name value and the config fields allowed for that rule.