UNPKG

469 BTypeScriptView Raw
1import type { Context } from '../context';
2import type { Liquid } from '../liquid';
3import type { FilterToken } from '../tokens';
4export interface FilterImpl {
5 context: Context;
6 token: FilterToken;
7 liquid: Liquid;
8}
9export type FilterHandler = (this: FilterImpl, value: any, ...args: any[]) => any;
10export interface FilterOptions {
11 handler: FilterHandler;
12 raw: boolean;
13}
14export type FilterImplOptions = FilterHandler | FilterOptions;