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.

15 lines (14 loc) 469 B
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;