UNPKG

520 BTypeScriptView Raw
1import { Context } from '../context';
2export type UnaryOperatorHandler = (operand: any, ctx: Context) => boolean;
3export type BinaryOperatorHandler = (lhs: any, rhs: any, ctx: Context) => boolean;
4export type OperatorHandler = UnaryOperatorHandler | BinaryOperatorHandler;
5export type Operators = Record<string, OperatorHandler>;
6export declare const defaultOperators: Operators;
7export declare function equals(lhs: any, rhs: any): boolean;
8export declare function arrayIncludes(arr: any[], item: any): boolean;