UNPKG

@techmmunity/symbiosis

Version:

Symbiosis - The Ultimate OM For All Databases

31 lines (30 loc) 714 B
import type { FindOperatorType } from "./find-operators-type"; interface ConstructorParams<T> { type: FindOperatorType; values: Array<T>; not?: boolean; } /** * Find Operator used in Find Conditions. */ export declare class FindOperator { /** * Operator type. */ readonly type: FindOperatorType; /** * Parameter values. */ readonly values: Array<any>; /** * Determines if should reverse the query. * * Used for the `Not` operator, who accepts receive * another FindOperator as param. * * Ex: `Not(Between(foo, bar))` */ readonly not?: boolean; constructor({ type, values, not }: ConstructorParams<any>); } export {};