UNPKG

@paroicms/server

Version:
12 lines (11 loc) 637 B
import type { Context } from "liquidjs"; import type { SiteContext } from "../site-context/site-context.types.js"; import type { RenderingContext } from "./liquidjs-rendering/rendering-context.js"; export type LiquidFilterHandler = (value: unknown, options: { ctx: Context; renderingContext: RenderingContext; args: unknown[]; }) => string | undefined | Promise<string | undefined>; export declare function toLiquidFilterHandler(siteContext: Pick<SiteContext, "logger">, handler: LiquidFilterHandler): (this: { context: Context; }, value: unknown, ...args: unknown[]) => string | Promise<string | undefined> | undefined;