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

11 lines
505 B
TypeScript
Raw Permalink Normal View History

2024-07-08 01:49:38 +00:00
import { QuotedToken, Token } from '../tokens';
import type { Context } from '../context';
export declare class Expression {
private postfix;
constructor(tokens: IterableIterator<Token>);
evaluate(ctx: Context, lenient?: boolean): Generator<unknown, unknown, unknown>;
valid(): boolean;
}
export declare function evalToken(token: Token | undefined, ctx: Context, lenient?: boolean): IterableIterator<unknown>;
export declare function evalQuotedToken(token: QuotedToken): string;