Create express-handlebars.d.ts

This commit is contained in:
Sam Saint-Pettersen
2015-10-21 17:55:39 +01:00
parent 98a9440752
commit 2551134c6c
+19
View File
@@ -0,0 +1,19 @@
// Type definitions for express-handlebars
// Project: https://github.com/ericf/express-handlebars
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface ExphbsOptions {
handlebars?: any;
extname?: string;
layoutsDir?: string;
partialsDir?: string;
defaultLayout?: string;
helpers?: any;
compilerOptions?: any;
}
declare module "express-handlebars" {
function exphbs(options: ExphbsOptions): Function;
export = exphbs;
}