Skip to main content

ToRuleGroupTypeIC<T>

ToRuleGroupTypeIC<T> = T extends RuleGroupTypeIC ? T : T extends DefaultRuleGroupType<infer F> ? DefaultRuleGroupTypeIC<F> : T extends RuleGroupType<infer R, infer C> ? RuleGroupTypeIC<R, C> & Omit<T, keyof RuleGroupType<R, C>> : T

Defined in: packages/core/src/types/ruleGroupsIC.ts:138

Converts a RuleGroupType extension to the corresponding RuleGroupTypeIC type, preserving any additional properties. If the type already extends RuleGroupTypeIC, it is returned as-is.

Type Parameters

Type Parameter
T extends RuleGroupTypeAny

caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.