@types/express-serve-static-core
Advanced tools
Comparing version 4.16.9 to 4.16.10
@@ -177,8 +177,8 @@ // Type definitions for Express 4.16 | ||
signed?: boolean; | ||
expires?: Date | boolean; | ||
expires?: Date; | ||
httpOnly?: boolean; | ||
path?: string; | ||
domain?: string; | ||
secure?: boolean | 'auto'; | ||
encode?: (val: string) => void; | ||
secure?: boolean; | ||
encode?: (val: string) => string; | ||
sameSite?: boolean | string; | ||
@@ -460,5 +460,2 @@ } | ||
/** Clear cookie `name`. */ | ||
clearCookie(name: string, options?: any): Response; | ||
query: any; | ||
@@ -493,3 +490,3 @@ | ||
export type Send = (body?: any) => Response; | ||
export type Send<T = Response> = (body?: any) => T; | ||
@@ -500,3 +497,3 @@ export interface Response extends http.ServerResponse, Express.Response { | ||
*/ | ||
status(code: number): Response; | ||
status(code: number): this; | ||
@@ -514,3 +511,3 @@ /** | ||
*/ | ||
sendStatus(code: number): Response; | ||
sendStatus(code: number): this; | ||
@@ -527,3 +524,3 @@ /** | ||
*/ | ||
links(links: any): Response; | ||
links(links: any): this; | ||
@@ -540,3 +537,3 @@ /** | ||
*/ | ||
send: Send; | ||
send: Send<this>; | ||
@@ -553,3 +550,3 @@ /** | ||
*/ | ||
json: Send; | ||
json: Send<this>; | ||
@@ -566,3 +563,3 @@ /** | ||
*/ | ||
jsonp: Send; | ||
jsonp: Send<this>; | ||
@@ -658,3 +655,3 @@ /** | ||
*/ | ||
contentType(type: string): Response; | ||
contentType(type: string): this; | ||
@@ -673,3 +670,3 @@ /** | ||
*/ | ||
type(type: string): Response; | ||
type(type: string): this; | ||
@@ -728,3 +725,3 @@ /** | ||
*/ | ||
format(obj: any): Response; | ||
format(obj: any): this; | ||
@@ -734,3 +731,3 @@ /** | ||
*/ | ||
attachment(filename?: string): Response; | ||
attachment(filename?: string): this; | ||
@@ -749,8 +746,7 @@ /** | ||
*/ | ||
set(field: any): Response; | ||
set(field: string, value?: string): Response; | ||
set(field: string, value?: string[]): Response; | ||
set(field: any): this; | ||
set(field: string, value?: string | string[]): this; | ||
header(field: any): Response; | ||
header(field: string, value?: string): Response; | ||
header(field: any): this; | ||
header(field: string, value?: string | string[]): this; | ||
@@ -764,3 +760,3 @@ // Property indicating if HTTP headers has been sent for the response. | ||
/** Clear cookie `name`. */ | ||
clearCookie(name: string, options?: any): Response; | ||
clearCookie(name: string, options?: any): this; | ||
@@ -784,5 +780,5 @@ /** | ||
*/ | ||
cookie(name: string, val: string, options: CookieOptions): Response; | ||
cookie(name: string, val: any, options: CookieOptions): Response; | ||
cookie(name: string, val: any): Response; | ||
cookie(name: string, val: string, options: CookieOptions): this; | ||
cookie(name: string, val: any, options: CookieOptions): this; | ||
cookie(name: string, val: any): this; | ||
@@ -815,3 +811,3 @@ /** | ||
*/ | ||
location(url: string): Response; | ||
location(url: string): this; | ||
@@ -862,3 +858,3 @@ /** | ||
*/ | ||
vary(field: string): Response; | ||
vary(field: string): this; | ||
@@ -876,3 +872,3 @@ app: Application; | ||
*/ | ||
append(field: string, value?: string[] | string): Response; | ||
append(field: string, value?: string[] | string): this; | ||
@@ -941,3 +937,3 @@ /** | ||
*/ | ||
engine(ext: string, fn: (path: string, options: object, callback: (e: any, rendered: string) => void) => void): Application; | ||
engine(ext: string, fn: (path: string, options: object, callback: (e: any, rendered: string) => void) => void): this; | ||
@@ -956,3 +952,3 @@ /** | ||
*/ | ||
set(setting: string, val: any): Application; | ||
set(setting: string, val: any): this; | ||
get: ((name: string) => any) & IRouterMatcher<this>; | ||
@@ -1006,6 +1002,6 @@ | ||
/** Enable `setting`. */ | ||
enable(setting: string): Application; | ||
enable(setting: string): this; | ||
/** Disable `setting`. */ | ||
disable(setting: string): Application; | ||
disable(setting: string): this; | ||
@@ -1012,0 +1008,0 @@ /** |
{ | ||
"name": "@types/express-serve-static-core", | ||
"version": "4.16.9", | ||
"version": "4.16.10", | ||
"description": "TypeScript definitions for Express", | ||
@@ -50,4 +50,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "1aa7520ab937b684d55d4d6134d9f894a792398e4db7c4550308361ae771abc0", | ||
"typesPublisherContentHash": "d0e8b8726ad354ab6bc05b5f9807d56ea1d8f90aef9cb0270e9070a18caec63a", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 19 Aug 2019 00:51:14 GMT | ||
* Last updated: Tue, 15 Oct 2019 21:13:46 GMT | ||
* Dependencies: @types/range-parser, @types/node | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
38130
955