[@types/koa-views] Add missing autoRender flag to opts (#40458)

This commit is contained in:
Andrew Marcuse
2019-11-18 12:22:00 -08:00
committed by Sheetal Nandi
parent 4def36b891
commit 2296bc56ab
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -27,6 +27,10 @@
import * as Koa from "koa";
declare function views(dir: string, opts?: {
/*
* autoRender the result into ctx.body, defaults to true
*/
autoRender?: boolean,
/*
* default extension for your views
*/
+1
View File
@@ -4,6 +4,7 @@ import views = require("koa-views");
const app = new Koa();
app.use(views('/views', {
autoRender: true,
map: {
html: 'underscore'
},