@types/mustache-express
TypeScript icon, indicating that this package has built-in type declarations

1.2.5 • Public • Published

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

Credits

These definitions were written by BendingBender.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/mustache-express

Weekly Downloads

2,926

Version

1.2.5

License

MIT

Unpacked Size

3.63 kB

Total Files

5

Last publish

Collaborators

  • types