DefinitelyTyped/types/koa-websocket/tsconfig.json
Eunchong Yu 2a4a6d66af [koa-websocket] Fix to match with its implementation (#29611)
* Fix koa-websocket to match with its implementation

The major change is about `Middleware`. Koa-websocket doesn't inject
`this` argument to its middlewares. Instead, additional properties are
appended on the Koa context.

https://github.com/kudos/koa-websocket/blob/master/index.js

* Extract Context.websocket

It's necessary to use well with other middlewares,
like koa-router or else.

* Add Context.app to be able to access ctx.app.ws

* Add a test about Context.app

* Remove the target requirement
2018-10-17 08:41:51 -07:00

24 lines
494 B
JSON

{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"koa-websocket-tests.ts"
]
}