Installation
npm install --save @types/mustache-express
Summary
This package contains type definitions for mustache-express (https://github.com/bryanburgers/node-mustache-express#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mustache-express.
index.d.ts
import { Cache } from "lru-cache";
export = mustacheExpress;
declare function mustacheExpress(
partialsPath?: string,
partialsExt?: string,
): mustacheExpress.ExpessEngine;
declare namespace mustacheExpress {
interface ExpessEngine {
(path: string, options: any, cb: (...args: any[]) => any): any;
cache: TemplateCache;
}
type TemplateCache = Cache<string, { name: string; data: string; partials: string[] }>;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/lru-cache
Credits
These definitions were written by BendingBender.