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.

40 lines (39 loc) 991 B
import { Token } from './token'; export declare const enum OperatorType { Binary = 0, Unary = 1 } export declare const operatorPrecedences: { '==': number; '!=': number; '>': number; '<': number; '>=': number; '<=': number; contains: number; not: number; and: number; or: number; }; export declare const operatorTypes: { '==': OperatorType; '!=': OperatorType; '>': OperatorType; '<': OperatorType; '>=': OperatorType; '<=': OperatorType; contains: OperatorType; not: OperatorType; and: OperatorType; or: OperatorType; }; export type OperatorKey = keyof typeof operatorPrecedences; export declare class OperatorToken extends Token { input: string; begin: number; end: number; file?: string | undefined; operator: OperatorKey; constructor(input: string, begin: number, end: number, file?: string | undefined); getPrecedence(): number; }