mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #22016 from wingsbob/add-koa-etag
Add types for koa-etag
This commit is contained in:
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// Type definitions for koa-etag 3.0
|
||||
// Project: https://github.com/koajs/etag#readme
|
||||
// Definitions by: Matthew Bull <https://github.com/wingsbob>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import * as koa from 'koa';
|
||||
import * as etag from 'etag';
|
||||
|
||||
declare function koaEtag(options?: etag.Options): koa.Middleware;
|
||||
|
||||
export = koaEtag;
|
||||
@@ -0,0 +1,8 @@
|
||||
import koaEtag = require('koa-etag');
|
||||
import * as Koa from 'koa';
|
||||
|
||||
new Koa().use(koaEtag());
|
||||
|
||||
new Koa().use(koaEtag({}));
|
||||
|
||||
new Koa().use(koaEtag({ weak: true }));
|
||||
@@ -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-etag-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user