fixed module export type from Exphbs to ExpressHandleBars

Since it is now working this way
This commit is contained in:
Igor N. Dultsev
2016-01-09 18:40:21 +06:00
parent 1ff1390269
commit 2eecb30774
+7 -1
View File
@@ -1,6 +1,7 @@
// Type definitions for express-handlebars
// Project: https://github.com/ericf/express-handlebars
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
// Updated by: Igor Dultsev <https://github.com/yhaskell>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../es6-promise/es6-promise.d.ts" />
@@ -40,7 +41,12 @@ interface Exphbs {
renderView(viewPath: string, optionsOrCallback: any, callback?: () => string): void;
}
interface ExpressHandlebars {
(options?: ExphbsOptions): Function;
create (options?: ExphbsOptions): Exphbs;
}
declare module "express-handlebars" {
var exphbs: Exphbs;
var exphbs: ExpressHandlebars;
export = exphbs;
}