@types/express-serve-static-core
Advanced tools
Comparing version
@@ -295,8 +295,19 @@ // This extracts the core definitions from express to prevent a circular dependency between express and serve-static | ||
*/ | ||
stack: any[]; | ||
stack: ILayer[]; | ||
} | ||
export interface ILayer { | ||
route?: IRoute; | ||
name: string | "<anonymous>"; | ||
params?: Record<string, any>; | ||
keys: string[]; | ||
path?: string; | ||
method: string; | ||
regexp: RegExp; | ||
handle: (req: Request, res: Response, next: NextFunction) => any; | ||
} | ||
export interface IRoute<Route extends string = string> { | ||
path: string; | ||
stack: any; | ||
stack: ILayer[]; | ||
all: IRouterHandler<this, Route>; | ||
@@ -303,0 +314,0 @@ get: IRouterHandler<this, Route>; |
{ | ||
"name": "@types/express-serve-static-core", | ||
"version": "4.19.1", | ||
"version": "4.19.2", | ||
"description": "TypeScript definitions for express-serve-static-core", | ||
@@ -53,4 +53,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-serve-static-core", | ||
}, | ||
"typesPublisherContentHash": "a2675271698531b5c0a794fd29a9ae4e62d231058d59c57312f67b44c1fe73c4", | ||
"typesPublisherContentHash": "bd6855861500fccef8c8300a403417400ef1c4a13546297547845b2521e6ac49", | ||
"typeScriptVersion": "4.7" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 21 May 2024 20:08:08 GMT | ||
* Last updated: Wed, 29 May 2024 18:07:56 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/qs](https://npmjs.com/package/@types/qs), [@types/range-parser](https://npmjs.com/package/@types/range-parser), [@types/send](https://npmjs.com/package/@types/send) | ||
@@ -14,0 +14,0 @@ |
46410
0.59%1171
0.86%