From 3154fda9c0813157c849fb7f611fc7bb2555ec71 Mon Sep 17 00:00:00 2001 From: christyatsegment <57451616+christyatsegment@users.noreply.github.com> Date: Mon, 10 Feb 2020 19:28:57 +0000 Subject: [PATCH] Add render method to Koa Context (#42008) * Add render method to Koa Context * Add correct return type * Fix whitespace issues * Add semi-colon --- types/koa-ejs/index.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/koa-ejs/index.d.ts b/types/koa-ejs/index.d.ts index e29c4d40933544..016f7da890b21b 100644 --- a/types/koa-ejs/index.d.ts +++ b/types/koa-ejs/index.d.ts @@ -6,6 +6,12 @@ import * as Koa from "koa"; +declare module "Koa" { + interface ExtendableContext { + render: (template: string, properties?: {[name: string]: string}) => Promise; + } +} + /** * Adds render method to the app context. */