From 7da1141f4ea59a19e51327d55e78620cbcfceae6 Mon Sep 17 00:00:00 2001 From: Oliver Joseph Ash Date: Wed, 16 May 2018 13:13:56 +0100 Subject: [PATCH] Node: add `undefined` to `ParsedUrlQuery` index signature --- types/node/index.d.ts | 2 +- types/node/v8/index.d.ts | 2 +- types/node/v9/index.d.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index b26ea63807..d964a41c43 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -991,7 +991,7 @@ declare module "querystring" { decodeURIComponent?: Function; } - interface ParsedUrlQuery { [key: string]: string | string[]; } + interface ParsedUrlQuery { [key: string]: string | string[] | undefined; } export function stringify(obj: T, sep?: string, eq?: string, options?: StringifyOptions): string; export function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery; diff --git a/types/node/v8/index.d.ts b/types/node/v8/index.d.ts index 32530306c2..27014e0cb0 100644 --- a/types/node/v8/index.d.ts +++ b/types/node/v8/index.d.ts @@ -895,7 +895,7 @@ declare module "querystring" { decodeURIComponent?: Function; } - interface ParsedUrlQuery { [key: string]: string | string[]; } + interface ParsedUrlQuery { [key: string]: string | string[] | undefined; } export function stringify(obj: T, sep?: string, eq?: string, options?: StringifyOptions): string; export function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery; diff --git a/types/node/v9/index.d.ts b/types/node/v9/index.d.ts index e7112daa25..014fd9bac1 100644 --- a/types/node/v9/index.d.ts +++ b/types/node/v9/index.d.ts @@ -982,7 +982,7 @@ declare module "querystring" { decodeURIComponent?: Function; } - interface ParsedUrlQuery { [key: string]: string | string[]; } + interface ParsedUrlQuery { [key: string]: string | string[] | undefined; } export function stringify(obj: T, sep?: string, eq?: string, options?: StringifyOptions): string; export function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery;