@types/express-serve-static-core
Advanced tools
Comparing version 4.17.2 to 4.17.3
@@ -11,2 +11,3 @@ // Type definitions for Express 4.17 | ||
// David Stephens <https://github.com/dwrss> | ||
// Shin Ando <https://github.com/andoshin11> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -58,3 +59,3 @@ // TypeScript Version: 2.3 | ||
export interface IRouterMatcher<T> { | ||
export interface IRouterMatcher<T, Method extends 'all' | 'get' | 'post' | 'put' | 'delete' | 'patch' | 'options' | 'head' = any> { | ||
// tslint:disable-next-line no-unnecessary-generics (This generic is meant to be passed explicitly.) | ||
@@ -112,10 +113,10 @@ <P extends Params = ParamsDictionary, ResBody = any, ReqBody = any>(path: PathParams, ...handlers: Array<RequestHandler<P, ResBody, ReqBody>>): T; | ||
*/ | ||
all: IRouterMatcher<this>; | ||
get: IRouterMatcher<this>; | ||
post: IRouterMatcher<this>; | ||
put: IRouterMatcher<this>; | ||
delete: IRouterMatcher<this>; | ||
patch: IRouterMatcher<this>; | ||
options: IRouterMatcher<this>; | ||
head: IRouterMatcher<this>; | ||
all: IRouterMatcher<this, 'all'>; | ||
get: IRouterMatcher<this, 'get'>; | ||
post: IRouterMatcher<this, 'post'>; | ||
put: IRouterMatcher<this, 'put'>; | ||
delete: IRouterMatcher<this, 'delete'>; | ||
patch: IRouterMatcher<this, 'patch'>; | ||
options: IRouterMatcher<this, 'options'>; | ||
head: IRouterMatcher<this, 'head'>; | ||
@@ -122,0 +123,0 @@ checkout: IRouterMatcher<this>; |
{ | ||
"name": "@types/express-serve-static-core", | ||
"version": "4.17.2", | ||
"version": "4.17.3", | ||
"description": "TypeScript definitions for Express", | ||
@@ -46,2 +46,7 @@ "license": "MIT", | ||
"githubUsername": "dwrss" | ||
}, | ||
{ | ||
"name": "Shin Ando", | ||
"url": "https://github.com/andoshin11", | ||
"githubUsername": "andoshin11" | ||
} | ||
@@ -61,4 +66,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "2e948ce4c0c2ac0209b85d1df5138f77c06e0c5013ab175e37b78c25ffae438d", | ||
"typesPublisherContentHash": "4509fd2d6a9b450688a25deac6ee8e0e863e8a3de39a6bb845ec6fd953c3762c", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 21 Jan 2020 21:36:23 GMT | ||
* Last updated: Mon, 23 Mar 2020 15:36:46 GMT | ||
* Dependencies: [@types/range-parser](https://npmjs.com/package/@types/range-parser), [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Boris Yankov (https://github.com/borisyankov), Michał Lytek (https://github.com/19majkel94), Kacper Polak (https://github.com/kacepe), Satana Charuwichitratana (https://github.com/micksatana), Sami Jaber (https://github.com/samijaber), aereal (https://github.com/aereal), Jose Luis Leon (https://github.com/JoseLion), and David Stephens (https://github.com/dwrss). | ||
These definitions were written by [Boris Yankov](https://github.com/borisyankov), [Michał Lytek](https://github.com/19majkel94), [Kacper Polak](https://github.com/kacepe), [Satana Charuwichitratana](https://github.com/micksatana), [Sami Jaber](https://github.com/samijaber), [aereal](https://github.com/aereal), [Jose Luis Leon](https://github.com/JoseLion), [David Stephens](https://github.com/dwrss), and [Shin Ando](https://github.com/andoshin11). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39613
962