UNPKG

squirrelly

Version:

Lightweight, fast, and powerful JS template engine. Supports helpers, filters, template inheritance

14 lines (13 loc) 305 B
interface Dict<T> { [key: string]: T; } declare class Cacher<T> { private cache; constructor(cache: Dict<T>); define(key: string, val: T): void; get(key: string): T; remove(key: string): void; reset(): void; load(cacheObj: Dict<T>): void; } export { Cacher };