Add declarations for koa-range 0.3 (#20071)

This commit is contained in:
Sami Kukkonen
2017-09-27 19:56:26 +03:00
committed by Mohamed Hegazy
parent 7f7f502db8
commit 30fc08047d
4 changed files with 37 additions and 0 deletions

9
types/koa-range/index.d.ts vendored Normal file
View 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;

View File

@@ -0,0 +1,5 @@
import * as range from "koa-range";
import * as Koa from "koa";
const app = new Koa();
app.use(range);

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

View File

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