mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Fix koa-hbs-tests.ts
This commit is contained in:
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// Type definitions for koa-hbs v1.x
|
||||
// Project: https://github.com/gilt/koa-hbs
|
||||
// Definitions by: Jacob Malone <https://github.com/jcbmln/>
|
||||
// Definitions by: Jacob Malone <https://github.com/jcbmln/>, Mudkip <https://github.com/mudkipme>
|
||||
// Definitions: https://github.com/jcbmln/DefinitelyTyped
|
||||
|
||||
/* =================== USAGE ===================
|
||||
|
||||
@@ -9,7 +9,7 @@ app.use(hbs.middleware({
|
||||
}));
|
||||
|
||||
app.use(async (ctx, next) => {
|
||||
await this.render('index', {
|
||||
await ctx.render('index', {
|
||||
title: 'Hello World!'
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user