diff --git a/types/koa-range/index.d.ts b/types/koa-range/index.d.ts new file mode 100644 index 0000000000..f2b109b899 --- /dev/null +++ b/types/koa-range/index.d.ts @@ -0,0 +1,9 @@ +// Type definitions for koa-range 0.3 +// Project: https://github.com/koajs/koa-range +// Definitions by: Sami Kukkonen +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import * as Koa from "koa"; +declare const KoaRange: Koa.Middleware; +declare namespace KoaRange { } +export = KoaRange; diff --git a/types/koa-range/koa-range-tests.ts b/types/koa-range/koa-range-tests.ts new file mode 100644 index 0000000000..c489bf4a6b --- /dev/null +++ b/types/koa-range/koa-range-tests.ts @@ -0,0 +1,5 @@ +import * as range from "koa-range"; +import * as Koa from "koa"; + +const app = new Koa(); +app.use(range); diff --git a/types/koa-range/tsconfig.json b/types/koa-range/tsconfig.json new file mode 100644 index 0000000000..742860d438 --- /dev/null +++ b/types/koa-range/tsconfig.json @@ -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" + ] +} diff --git a/types/koa-range/tslint.json b/types/koa-range/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/koa-range/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }