summaryrefslogtreecommitdiff
path: root/node_modules/liquidjs/dist/render/operator.d.ts
blob: 6a49663de5abbde37a0898b06eb5dbd909c49171 (plain)
1
2
3
4
5
6
7
8
import { Context } from '../context';
export type UnaryOperatorHandler = (operand: any, ctx: Context) => boolean;
export type BinaryOperatorHandler = (lhs: any, rhs: any, ctx: Context) => boolean;
export type OperatorHandler = UnaryOperatorHandler | BinaryOperatorHandler;
export type Operators = Record<string, OperatorHandler>;
export declare const defaultOperators: Operators;
export declare function equals(lhs: any, rhs: any): boolean;
export declare function arrayIncludes(arr: any[], item: any): boolean;