@liquid-js/lit-ntml
Version:
Inspired by lit-html but for Node.js
18 lines (17 loc) • 766 B
TypeScript
export interface CacheStoreMap {
useUntil: number;
data: string;
}
export interface Ntml {
cacheStore?: Map<string, CacheStoreMap>;
cacheName?: string;
cacheExpiry?: number;
minify?: boolean;
parseHtml?: boolean;
parseHtmlFragment?: boolean;
}
export declare function parseThisHtml(content: string): Promise<any>;
export declare function parseFragmentHtml(content: string): Promise<any>;
export declare function minifyHtml(content: string, minify: boolean, shouldParseHtml: boolean, shouldParseHtmlFragment: boolean): Promise<any>;
export declare function ntml({cacheStore, cacheName, cacheExpiry, minify, parseHtml, parseHtmlFragment}?: Ntml): (strings: TemplateStringsArray, ...exps: any[]) => Promise<string>;
export default ntml;