diff --git a/koa-hbs/index.d.ts b/koa-hbs/index.d.ts index 0b800418e7..51c609e296 100644 --- a/koa-hbs/index.d.ts +++ b/koa-hbs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for koa-hbs v1.x // Project: https://github.com/gilt/koa-hbs -// Definitions by: Jacob Malone +// Definitions by: Jacob Malone , Mudkip // Definitions: https://github.com/jcbmln/DefinitelyTyped /* =================== USAGE =================== diff --git a/koa-hbs/koa-hbs-tests.ts b/koa-hbs/koa-hbs-tests.ts index 43c708b581..3c86a51cad 100644 --- a/koa-hbs/koa-hbs-tests.ts +++ b/koa-hbs/koa-hbs-tests.ts @@ -9,7 +9,7 @@ app.use(hbs.middleware({ })); app.use(async (ctx, next) => { - await this.render('index', { + await ctx.render('index', { title: 'Hello World!' }); });