@types/set-cookie-parser
Advanced tools
Comparing version
@@ -12,6 +12,10 @@ // Type definitions for set-cookie-parser | ||
function SetCookieParser(input: string | ReadonlyArray<string> | http.IncomingMessage, options?: SetCookieParser.Options): SetCookieParser.Cookie[]; | ||
function SetCookieParser(input: string | ReadonlyArray<string> | http.IncomingMessage, options: SetCookieParser.Options & { map: true }): SetCookieParser.CookieMap; | ||
function SetCookieParser(input: string | ReadonlyArray<string> | http.IncomingMessage, options?: SetCookieParser.Options & { map?: false }): SetCookieParser.Cookie[]; | ||
function SetCookieParser(input: string | ReadonlyArray<string> | http.IncomingMessage, options?: SetCookieParser.Options): SetCookieParser.Cookie[] | SetCookieParser.CookieMap; | ||
namespace SetCookieParser { | ||
function parse(input: string | ReadonlyArray<string> | http.IncomingMessage, options?: Options): Cookie[]; | ||
function parse(input: string | ReadonlyArray<string> | http.IncomingMessage, options: Options & { map: true }): CookieMap; | ||
function parse(input: string | ReadonlyArray<string> | http.IncomingMessage, options?: Options & { map?: false }): Cookie[]; | ||
function parse(input: string | ReadonlyArray<string> | http.IncomingMessage, options?: Options): Cookie[] | CookieMap; | ||
@@ -31,2 +35,6 @@ function splitCookiesString(input: string | ReadonlyArray<string> | void): string[]; | ||
interface CookieMap { | ||
[name: string]: Cookie; | ||
} | ||
type Options = { | ||
@@ -33,0 +41,0 @@ decodeValues?: boolean; |
{ | ||
"name": "@types/set-cookie-parser", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "TypeScript definitions for set-cookie-parser", | ||
@@ -22,3 +22,4 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/set-cookie-parser" | ||
}, | ||
@@ -29,4 +30,4 @@ "scripts": {}, | ||
}, | ||
"typesPublisherContentHash": "7300de538cf6afc4bc34dd9ae0e59f2bb5e81d8667e524472be058f8b9e33090", | ||
"typesPublisherContentHash": "5ed7fd844203052ba0250f1afc0df86562ceafd37da54b2abef21f8b09c668ac", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 30 Jan 2019 23:25:57 GMT | ||
* Last updated: Mon, 17 Jun 2019 03:12:29 GMT | ||
* Dependencies: @types/node | ||
@@ -14,0 +14,0 @@ * Global values: none |
4566
20.19%36
24.14%