mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-11 22:37:31 +08:00
Add declarations for koa-range 0.3 (#20071)
This commit is contained in:
committed by
Mohamed Hegazy
parent
7f7f502db8
commit
30fc08047d
9
types/koa-range/index.d.ts
vendored
Normal file
9
types/koa-range/index.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
// Type definitions for koa-range 0.3
|
||||
// Project: https://github.com/koajs/koa-range
|
||||
// Definitions by: Sami Kukkonen <https://github.com/strax>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import * as Koa from "koa";
|
||||
declare const KoaRange: Koa.Middleware;
|
||||
declare namespace KoaRange { }
|
||||
export = KoaRange;
|
||||
5
types/koa-range/koa-range-tests.ts
Normal file
5
types/koa-range/koa-range-tests.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import * as range from "koa-range";
|
||||
import * as Koa from "koa";
|
||||
|
||||
const app = new Koa();
|
||||
app.use(range);
|
||||
22
types/koa-range/tsconfig.json
Normal file
22
types/koa-range/tsconfig.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"koa-range-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/koa-range/tslint.json
Normal file
1
types/koa-range/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user