react-querybuilder
Version:
React Query Builder component for constructing queries and filters, with utilities for executing them in various database and evaluation contexts
14 lines (13 loc) • 576 B
text/typescript
import type { FullField, GetOptionIdentifierType, ValueSources } from "../types/index.noReact.mjs";
/**
* Utility function to get the value sources array for the given
* field and operator. If the field definition does not define a
* `valueSources` property, the `getValueSources` prop is used.
* Returns `["value"]` by default.
*/
export declare const getValueSourcesUtil: <
F extends FullField,
O extends string
>(fieldData: F, operator: string, getValueSources?: (field: GetOptionIdentifierType<F>, operator: O, misc: {
fieldData: F
}) => ValueSources) => ValueSources;