Merge branch 'koa-response-time' of https://github.com/ThorSedeke/DefinitelyTyped into ThorSedeke-koa-response-time

This commit is contained in:
Andy Hanson
2018-05-03 09:52:33 -07:00
4 changed files with 38 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
// Type definitions for koa-response-time 2.0
// Project: https://github.com/koajs/response-time#readme
// Definitions by: Thor Sedeke <https://github.com/thorsedeke>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
declare function koa_response_time(): any;
declare namespace koa_response_time { }
export = koa_response_time;
@@ -0,0 +1,4 @@
import koaResponseTime = require('koa-response-time');
import Koa = require('koa');
new Koa().use(koaResponseTime());
+23
View File
@@ -0,0 +1,23 @@
{
"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-response-time-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }