@types/express-serve-static-core
Advanced tools
Comparing version 4.17.33 to 4.17.34
@@ -15,2 +15,4 @@ // Type definitions for Express 4.17 | ||
import { SendOptions } from 'send'; | ||
declare global { | ||
@@ -673,2 +675,12 @@ namespace Express { | ||
export interface SendFileOptions extends SendOptions { | ||
/** Object containing HTTP headers to serve with the file. */ | ||
headers?: Record<string, unknown>; | ||
} | ||
export interface DownloadOptions extends SendOptions { | ||
/** Object containing HTTP headers to serve with the file. The header `Content-Disposition` will be overridden by the filename argument. */ | ||
headers?: Record<string, unknown>; | ||
} | ||
export interface Response< | ||
@@ -787,3 +799,3 @@ ResBody = any, | ||
sendFile(path: string, fn?: Errback): void; | ||
sendFile(path: string, options: any, fn?: Errback): void; | ||
sendFile(path: string, options: SendFileOptions, fn?: Errback): void; | ||
@@ -797,3 +809,3 @@ /** | ||
*/ | ||
sendfile(path: string, options: any): void; | ||
sendfile(path: string, options: SendFileOptions): void; | ||
/** | ||
@@ -806,3 +818,3 @@ * @deprecated Use sendFile instead. | ||
*/ | ||
sendfile(path: string, options: any, fn: Errback): void; | ||
sendfile(path: string, options: SendFileOptions, fn: Errback): void; | ||
@@ -824,3 +836,3 @@ /** | ||
download(path: string, filename: string, fn?: Errback): void; | ||
download(path: string, filename: string, options: any, fn?: Errback): void; | ||
download(path: string, filename: string, options: DownloadOptions, fn?: Errback): void; | ||
@@ -827,0 +839,0 @@ /** |
{ | ||
"name": "@types/express-serve-static-core", | ||
"version": "4.17.33", | ||
"version": "4.17.34", | ||
"description": "TypeScript definitions for Express", | ||
@@ -50,6 +50,7 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-serve-static-core", | ||
"@types/qs": "*", | ||
"@types/range-parser": "*" | ||
"@types/range-parser": "*", | ||
"@types/send": "*" | ||
}, | ||
"typesPublisherContentHash": "0a827d8ef2f7f9ef4c3093ee5f8b4a148b276b25d09a337a636065cf58d32616", | ||
"typeScriptVersion": "4.2" | ||
"typesPublisherContentHash": "6792485dd3029af4dba08266548c43224ed5f3fe85bf657031f049fc464ed451", | ||
"typeScriptVersion": "4.3" | ||
} |
@@ -11,4 +11,4 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 23 Jan 2023 21:32:41 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) | ||
* Last updated: Wed, 26 Apr 2023 12:02:45 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) | ||
* Global values: none | ||
@@ -15,0 +15,0 @@ |
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
45452
1155
4
+ Added@types/send@*
+ Added@types/mime@1.3.5(transitive)
+ Added@types/send@0.17.4(transitive)