devsite/node_modules/liquidjs/dist/render/operator.d.ts

8 lines
448 B
TypeScript
Raw Permalink Normal View History

2024-07-08 01:49:38 +00:00
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;