Fix koa-hbs

This commit is contained in:
jKey Lu
2017-02-18 12:35:21 +08:00
parent 6e2ca90d5d
commit b557b88366
+2 -2
View File
@@ -37,7 +37,7 @@ declare namespace Hbs {
layoutsPath?: string,
contentHelperName?: string,
blockHelperName?: string,
disableCache?: boolean
disableCache?: boolean
}
}
@@ -50,7 +50,7 @@ declare const hbs: Hbs;
export = hbs;
declare module "koa" {
export interface Context extends Request, Response {
export interface Context {
render(tpl: string, locals?: {[key: string]: any}): Promise<void>;
}
}