mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
fixed module export type from Exphbs to ExpressHandleBars
Since it is now working this way
This commit is contained in:
+7
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user