Skip to main content

ToFlexibleOption<Opt extends BaseOption | string>

ToFlexibleOption<Opt extends BaseOption | string> = WithUnknownIndex<RequireAtLeastOne<Opt extends string ? FlexibleOption<Opt> : Opt, "name" | "value">>

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

Utility type to turn an Option, ValueOption, or BaseOption into a FlexibleOption.

Type Parameters​

Type Parameter
Opt extends BaseOption | string

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.