mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Update express-handlebars.d.ts
This commit is contained in:
+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