liquidjs
Version:
A simple, expressive and safe Shopify / Github Pages compatible template engine in pure JavaScript.
15 lines (14 loc) • 469 B
TypeScript
import type { Context } from '../context';
import type { Liquid } from '../liquid';
import type { FilterToken } from '../tokens';
export interface FilterImpl {
context: Context;
token: FilterToken;
liquid: Liquid;
}
export type FilterHandler = (this: FilterImpl, value: any, ...args: any[]) => any;
export interface FilterOptions {
handler: FilterHandler;
raw: boolean;
}
export type FilterImplOptions = FilterHandler | FilterOptions;