type FeatureRuleActionId = { [K in keyof RegisteredActions]: RegisteredActions[K] extends (context: FeatureRuleContext) => boolean ? K : never }[keyof RegisteredActions];Ids of registered actions whose function is a rule: it takes the rule context and returns a boolean.