mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-04 19:42:46 +08:00
Added koa-conditional-get definitions
This commit is contained in:
11
types/koa-conditional-get/index.d.ts
vendored
Normal file
11
types/koa-conditional-get/index.d.ts
vendored
Normal 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;
|
||||
4
types/koa-conditional-get/koa-conditional-get-tests.ts
Normal file
4
types/koa-conditional-get/koa-conditional-get-tests.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import Koa = require('koa');
|
||||
import conditional = require('koa-conditional-get');
|
||||
|
||||
new Koa().use(conditional());
|
||||
23
types/koa-conditional-get/tsconfig.json
Normal file
23
types/koa-conditional-get/tsconfig.json
Normal 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
types/koa-conditional-get/tslint.json
Normal file
1
types/koa-conditional-get/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user