@types/express
Advanced tools
Comparing version 4.17.11 to 4.17.20
@@ -1,9 +0,1 @@ | ||
// Type definitions for Express 4.17 | ||
// Project: http://expressjs.com | ||
// Definitions by: Boris Yankov <https://github.com/borisyankov> | ||
// China Medical University Hospital <https://github.com/CMUH> | ||
// Puneet Arora <https://github.com/puneetar> | ||
// Dylan Frankland <https://github.com/dfrankland> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
/* =================== USAGE =================== | ||
@@ -19,6 +11,6 @@ | ||
import * as bodyParser from 'body-parser'; | ||
import * as serveStatic from 'serve-static'; | ||
import * as core from 'express-serve-static-core'; | ||
import * as qs from 'qs'; | ||
import * as bodyParser from "body-parser"; | ||
import * as core from "express-serve-static-core"; | ||
import * as qs from "qs"; | ||
import * as serveStatic from "serve-static"; | ||
@@ -78,3 +70,3 @@ /** | ||
*/ | ||
caseSensitive?: boolean; | ||
caseSensitive?: boolean | undefined; | ||
@@ -88,3 +80,3 @@ /** | ||
*/ | ||
mergeParams?: boolean; | ||
mergeParams?: boolean | undefined; | ||
@@ -94,3 +86,3 @@ /** | ||
*/ | ||
strict?: boolean; | ||
strict?: boolean | undefined; | ||
} | ||
@@ -106,3 +98,3 @@ | ||
ReqQuery = core.Query, | ||
Locals extends Record<string, any> = Record<string, any> | ||
Locals extends Record<string, any> = Record<string, any>, | ||
> extends core.ErrorRequestHandler<P, ResBody, ReqBody, ReqQuery, Locals> {} | ||
@@ -117,2 +109,3 @@ interface Express extends core.Express {} | ||
interface NextFunction extends core.NextFunction {} | ||
interface Locals extends core.Locals {} | ||
interface Request< | ||
@@ -123,3 +116,3 @@ P = core.ParamsDictionary, | ||
ReqQuery = core.Query, | ||
Locals extends Record<string, any> = Record<string, any> | ||
Locals extends Record<string, any> = Record<string, any>, | ||
> extends core.Request<P, ResBody, ReqBody, ReqQuery, Locals> {} | ||
@@ -131,7 +124,9 @@ interface RequestHandler< | ||
ReqQuery = core.Query, | ||
Locals extends Record<string, any> = Record<string, any> | ||
Locals extends Record<string, any> = Record<string, any>, | ||
> extends core.RequestHandler<P, ResBody, ReqBody, ReqQuery, Locals> {} | ||
interface RequestParamHandler extends core.RequestParamHandler {} | ||
export interface Response<ResBody = any, Locals extends Record<string, any> = Record<string, any>> | ||
extends core.Response<ResBody, Locals> {} | ||
interface Response< | ||
ResBody = any, | ||
Locals extends Record<string, any> = Record<string, any>, | ||
> extends core.Response<ResBody, Locals> {} | ||
interface Router extends core.Router {} | ||
@@ -138,0 +133,0 @@ interface Send extends core.Send {} |
{ | ||
"name": "@types/express", | ||
"version": "4.17.11", | ||
"description": "TypeScript definitions for Express", | ||
"version": "4.17.20", | ||
"description": "TypeScript definitions for express", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express", | ||
"license": "MIT", | ||
@@ -9,19 +10,19 @@ "contributors": [ | ||
"name": "Boris Yankov", | ||
"url": "https://github.com/borisyankov", | ||
"githubUsername": "borisyankov" | ||
"githubUsername": "borisyankov", | ||
"url": "https://github.com/borisyankov" | ||
}, | ||
{ | ||
"name": "China Medical University Hospital", | ||
"url": "https://github.com/CMUH", | ||
"githubUsername": "CMUH" | ||
"githubUsername": "CMUH", | ||
"url": "https://github.com/CMUH" | ||
}, | ||
{ | ||
"name": "Puneet Arora", | ||
"url": "https://github.com/puneetar", | ||
"githubUsername": "puneetar" | ||
"githubUsername": "puneetar", | ||
"url": "https://github.com/puneetar" | ||
}, | ||
{ | ||
"name": "Dylan Frankland", | ||
"url": "https://github.com/dfrankland", | ||
"githubUsername": "dfrankland" | ||
"githubUsername": "dfrankland", | ||
"url": "https://github.com/dfrankland" | ||
} | ||
@@ -39,8 +40,8 @@ ], | ||
"@types/body-parser": "*", | ||
"@types/express-serve-static-core": "^4.17.18", | ||
"@types/express-serve-static-core": "^4.17.33", | ||
"@types/qs": "*", | ||
"@types/serve-static": "*" | ||
}, | ||
"typesPublisherContentHash": "51b7ca65fbad2f43fbcff8d74c47db7b8f36b31f71458c1fb328511d0075ac5a", | ||
"typeScriptVersion": "3.4" | ||
"typesPublisherContentHash": "564df074e8079566345f143877a68744d44358d987c7c16e87eefda6409e5750", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for Express (http://expressjs.com). | ||
This package contains type definitions for express (http://expressjs.com). | ||
@@ -12,7 +12,6 @@ # Details | ||
### Additional Details | ||
* Last updated: Tue, 12 Jan 2021 21:42:39 GMT | ||
* Dependencies: [@types/body-parser](https://npmjs.com/package/@types/body-parser), [@types/serve-static](https://npmjs.com/package/@types/serve-static), [@types/express-serve-static-core](https://npmjs.com/package/@types/express-serve-static-core), [@types/qs](https://npmjs.com/package/@types/qs) | ||
* Global values: none | ||
* Last updated: Wed, 18 Oct 2023 01:17:34 GMT | ||
* Dependencies: [@types/body-parser](https://npmjs.com/package/@types/body-parser), [@types/express-serve-static-core](https://npmjs.com/package/@types/express-serve-static-core), [@types/qs](https://npmjs.com/package/@types/qs), [@types/serve-static](https://npmjs.com/package/@types/serve-static) | ||
# Credits | ||
These definitions were written by [Boris Yankov](https://github.com/borisyankov), [China Medical University Hospital](https://github.com/CMUH), [Puneet Arora](https://github.com/puneetar), and [Dylan Frankland](https://github.com/dfrankland). |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
0
7863
110
16