@types/cookie-parser
Advanced tools
Comparing version 1.4.3 to 1.4.4
@@ -8,3 +8,3 @@ // Type definitions for cookie-parser 1.4 | ||
import * as express from 'express'; | ||
import * as express from "express"; | ||
@@ -25,3 +25,6 @@ declare global { | ||
declare function cookieParser(secret?: string | string[], options?: cookieParser.CookieParseOptions): express.RequestHandler; | ||
declare function cookieParser( | ||
secret?: string | string[], | ||
options?: cookieParser.CookieParseOptions, | ||
): express.RequestHandler; | ||
@@ -39,5 +42,8 @@ declare namespace cookieParser { | ||
function signedCookies<T extends { [key: string]: string }>(cookies: T, secret: string | string[]): { [P in keyof T]?: string | false}; | ||
function signedCookies<T extends { [key: string]: string }>( | ||
cookies: T, | ||
secret: string | string[], | ||
): { [P in keyof T]?: string | false }; | ||
} | ||
export = cookieParser; |
{ | ||
"name": "@types/cookie-parser", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "TypeScript definitions for cookie-parser", | ||
@@ -30,4 +30,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cookie-parser", | ||
}, | ||
"typesPublisherContentHash": "ec228e770576f43dd247dbfd15428c81cf1fbd84c02d978f6c4f0275d6394cf0", | ||
"typeScriptVersion": "3.9" | ||
"typesPublisherContentHash": "1fe3e440b2282ee003cd4d897d5b1effc9b1eefbcb49b3fae680d61535576632", | ||
"typeScriptVersion": "4.3" | ||
} |
@@ -18,3 +18,3 @@ # Installation | ||
import * as express from 'express'; | ||
import * as express from "express"; | ||
@@ -35,3 +35,6 @@ declare global { | ||
declare function cookieParser(secret?: string | string[], options?: cookieParser.CookieParseOptions): express.RequestHandler; | ||
declare function cookieParser( | ||
secret?: string | string[], | ||
options?: cookieParser.CookieParseOptions, | ||
): express.RequestHandler; | ||
@@ -49,3 +52,6 @@ declare namespace cookieParser { | ||
function signedCookies<T extends { [key: string]: string }>(cookies: T, secret: string | string[]): { [P in keyof T]?: string | false}; | ||
function signedCookies<T extends { [key: string]: string }>( | ||
cookies: T, | ||
secret: string | string[], | ||
): { [P in keyof T]?: string | false }; | ||
} | ||
@@ -58,3 +64,3 @@ | ||
### Additional Details | ||
* Last updated: Wed, 27 Apr 2022 10:31:34 GMT | ||
* Last updated: Mon, 04 Sep 2023 15:41:12 GMT | ||
* Dependencies: [@types/express](https://npmjs.com/package/@types/express) | ||
@@ -61,0 +67,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
6044
37
67