react-querybuilder
Version:
React Query Builder component for constructing queries and filters, with utilities for executing them in various database and evaluation contexts
12 lines (11 loc) • 535 B
text/typescript
export declare const preferProp: (def: boolean, prop?: boolean, context?: boolean) => boolean;
/**
* For given default, prop, and context values, return the first provided of prop,
* context, and default, in that order.
*/
export declare const usePreferProp: (def: boolean, prop?: boolean, context?: boolean) => boolean;
/**
* For given default, prop, and context values, return the first provided of prop,
* context, and default, in that order.
*/
export declare const usePreferAnyProp: (def?: any, prop?: any, context?: any) => any;