Skip to main content

GetOptionIdentifierType<Opt extends BaseOption>

GetOptionIdentifierType<Opt extends BaseOption> = Opt extends Option<infer NameType> | ValueOption<infer NameType> ? NameType : string

Defined in: packages/core/src/types/options.ts:31

Extracts the type of the identifying property from a Option, ValueOption, or FullOption.

Type Parameters​

Type Parameter
Opt extends BaseOption

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.