Merge pull request #22017 from wingsbob/add-koa-conditional-get

Added koa-conditional-get definitions
This commit is contained in:
Mine Starks
2017-12-11 10:24:51 -08:00
committed by GitHub
4 changed files with 39 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
// Type definitions for koa-conditional-get 2.0
// Project: https://github.com/koajs/conditional-get#readme
// Definitions by: Matthew Bull <https://github.com/wingsbob>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import * as koa from 'koa';
declare function koaConditionalGet(): koa.Middleware;
export = koaConditionalGet;
@@ -0,0 +1,4 @@
import Koa = require('koa');
import conditional = require('koa-conditional-get');
new Koa().use(conditional());
+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-conditional-get-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }