react-querybuilder
Version:
React Query Builder component for constructing queries and filters, with utilities for executing them in various database and evaluation contexts
11 lines (10 loc) • 604 B
TypeScript
import type { FlexibleOption, FullField, GetOptionIdentifierType, MatchMode, MatchModeOptions } from "../types/index.noReact";
/**
* Utility function to get the match modes array for the given
* field. If the field definition does not define a `matchModes`
* property, the `getMatchModes` prop is used. Returns
* `FullOption<MatchMode>[]` of all match modes by default.
*/
export declare const getMatchModesUtil: <F extends FullField>(fieldData: F, getMatchModes?: (field: GetOptionIdentifierType<F>, misc: {
fieldData: F;
}) => boolean | MatchMode[] | FlexibleOption<MatchMode>[]) => MatchModeOptions;