Added koa-conditional-get definitions

This commit is contained in:
Matthew Bull
2017-12-06 21:11:10 +00:00
parent 67e6191912
commit 4bac90ea18
4 changed files with 39 additions and 0 deletions

11
types/koa-conditional-get/index.d.ts vendored Normal file
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;

View File

@@ -0,0 +1,4 @@
import Koa = require('koa');
import conditional = require('koa-conditional-get');
new Koa().use(conditional());

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"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }