This commit is contained in:
2026-04-29 08:30:52 -07:00
commit b053d27321
1660 changed files with 329972 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
import { Context } from '../context/context';
export declare function isTruthy(val: any, ctx: Context): boolean;
export declare function isFalsy(val: any, ctx: Context): boolean;
+1
View File
@@ -0,0 +1 @@
export {};
+10
View File
@@ -0,0 +1,10 @@
import { QuotedToken, Token } from '../tokens';
import type { Context } from '../context';
export declare class Expression {
readonly postfix: Token[];
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;
+1
View File
@@ -0,0 +1 @@
export {};
+4
View File
@@ -0,0 +1,4 @@
export * from './render';
export * from './expression';
export * from './operator';
export * from './boolean';
+8
View File
@@ -0,0 +1,8 @@
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;
+8
View File
@@ -0,0 +1,8 @@
/// <reference types="node" />
import { Context } from '../context';
import { Template } from '../template';
import { Emitter } from '../emitters';
export declare class Render {
renderTemplatesToNodeStream(templates: Template[], ctx: Context): NodeJS.ReadableStream;
renderTemplates(templates: Template[], ctx: Context, emitter?: Emitter): IterableIterator<any>;
}
+1
View File
@@ -0,0 +1 @@
export {};
+1
View File
@@ -0,0 +1 @@
export declare function parseStringLiteral(str: string): string;
+1
View File
@@ -0,0 +1 @@
export {};