DefaultFieldProp<F>
DefaultFieldProp<
F> =string| ((fieldsData:FullOptionList<F>) =>string)
Defined in: packages/core/src/utils/QueryManager.ts:151
The getDefaultField option: either a field name or a function that picks one.
Named separately from QueryManagerOptions so callers building the option value conditionally can annotate the intermediate. TypeScript cannot reconcile the two arms of a ternary against an inline union, which otherwise forces a cast.
Type Parameters
| Type Parameter | Default type |
|---|---|
F extends FullField | FullField |
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.