mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Update express-handlebars.d.ts
This commit is contained in:
1 parent
d0b76a76e6
commit
0bf4af5b28
1 file changed
+5
-5
+5
-5
@@ -3,7 +3,7 @@
|
||||
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
interface Promise {} // This should be replaced with a Promise type definition import.
|
||||
/// <reference path="../es6-promise/es6-promise.d.ts" />
|
||||
|
||||
interface PartialTemplateOptions {
|
||||
cache?: boolean;
|
||||
@@ -33,10 +33,10 @@ interface Exphbs {
|
||||
compiled: Object;
|
||||
precompiled: Object;
|
||||
create(options?: ExphbsOptions): Exphbs;
|
||||
getPartials(options?: PartialTemplateOptions): Promise;
|
||||
getTemplate(filePath: string, options?: PartialTemplateOptions): Promise;
|
||||
getTemplates(dirPath: string, options?: PartialTemplateOptions): Promise;
|
||||
render(filePath: string, context: Object, options?: RenderOptions): Promise;
|
||||
getPartials(options?: PartialTemplateOptions): Promise<Object>;
|
||||
getTemplate(filePath: string, options?: PartialTemplateOptions): Promise<Function>;
|
||||
getTemplates(dirPath: string, options?: PartialTemplateOptions): Promise<Object>;
|
||||
render(filePath: string, context: Object, options?: RenderOptions): Promise<string>;
|
||||
renderView(viewPath: string, optionsOrCallback?: any, callback?: Function): void;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user