@goatlab/fluent
Version:
Readable query Interface & API generator for TS and Node
15 lines (14 loc) • 442 B
TypeScript
import { FluentQuery, LogicOperator, Primitives, PrimitivesArray } from '../../types';
/**
* Transforms the nested object WHERE clause into an
* Array of clearly defined conditions
* @param conditions
* @returns
*/
type Condition = {
operator: LogicOperator;
element: string;
value: Primitives | PrimitivesArray;
};
export declare const extractConditions: (conditions: FluentQuery<any>["where"][]) => Condition[];
export {};