UNPKG

liquidjs

Version:

A simple, expressive, extensible Liquid template engine for JavaScript — Shopify, Jekyll and GitHub Pages compatible, for Node.js, browsers, and the CLI, with TypeScript support.

9 lines (8 loc) 520 B
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;