liquidjs
Version:
A simple, expressive and safe Shopify / Github Pages compatible template engine in pure JavaScript.
7 lines (6 loc) • 418 B
TypeScript
import { Context } from '../context';
export declare type UnaryOperatorHandler = (operand: any, ctx: Context) => boolean;
export declare type BinaryOperatorHandler = (lhs: any, rhs: any, ctx: Context) => boolean;
export declare type OperatorHandler = UnaryOperatorHandler | BinaryOperatorHandler;
export declare type Operators = Record<string, OperatorHandler>;
export declare const defaultOperators: Operators;