Skip to main content

toFullOptionMap()

toFullOptionMap<OptMap>(optMap: OptMap, baseProperties?: Record<string, unknown>): OptMap extends BaseOptionMap<infer V, infer K> ? Partial<Record<K, ToFullOption<V>>> : never

Converts a FlexibleOptionList into a FullOptionList. Lists of full options are left unchanged.

Type Parameters

Type Parameter
OptMap extends BaseOptionMap

Parameters

ParameterType
optMapOptMap
baseProperties?Record<string, unknown>

Returns

OptMap extends BaseOptionMap<infer V, infer K> ? Partial<Record<K, ToFullOption<V>>> : never

Defined in

packages/react-querybuilder/src/utils/optGroupUtils.ts:84


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.