UNPKG

liquidjs

Version:

A simple, expressive and safe Shopify / Github Pages compatible template engine in pure JavaScript.

8 lines (7 loc) 324 B
import type { Template } from '../template/template'; export interface Cache<T> { write(key: string, value: T): void | Promise<void>; read(key: string): T | undefined | Promise<T | undefined>; remove(key: string): void | Promise<void>; } export type LiquidCache = Cache<Template[] | Promise<Template[]>>;