mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
[@types/koa-views] Add missing autoRender flag to opts (#40458)
This commit is contained in:
committed by
Sheetal Nandi
parent
4def36b891
commit
2296bc56ab
Vendored
+4
@@ -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
|
||||
*/
|
||||
|
||||
@@ -4,6 +4,7 @@ import views = require("koa-views");
|
||||
const app = new Koa();
|
||||
|
||||
app.use(views('/views', {
|
||||
autoRender: true,
|
||||
map: {
|
||||
html: 'underscore'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user