import * as defaultOperations from "./operations"; import { Query, Options, createQueryTester, EqualsOperation, createQueryOperation, createEqualsOperation, createOperationTester } from "./core"; const createDefaultQueryOperation = ( query: Query, ownerQuery: any, { compare, operations }: Partial = {} ) => { return createQueryOperation(query, ownerQuery, { compare, operations: Object.assign({}, defaultOperations, operations || {}) }); }; const createDefaultQueryTester = ( query: Query, options: Partial = {} ) => { const op = createDefaultQueryOperation(query, null, options); return createOperationTester(op); }; export { Query, EqualsOperation, createQueryTester, createOperationTester, createDefaultQueryOperation, createEqualsOperation, createQueryOperation }; export * from "./operations"; export default createDefaultQueryTester;