From a289846a164464ec1f9f0c945a3e64c115aadae3 Mon Sep 17 00:00:00 2001 From: Michael Paul Date: Fri, 30 Dec 2022 13:22:21 +0100 Subject: [PATCH] PW-7502: Bind QueryString type to URLSearchParams (#1077) --- src/typings/requestOptions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/typings/requestOptions.ts b/src/typings/requestOptions.ts index 9a54fd1..463804c 100644 --- a/src/typings/requestOptions.ts +++ b/src/typings/requestOptions.ts @@ -25,7 +25,8 @@ import * as https from "https"; import { URLSearchParams } from "url"; export namespace IRequest { - type QueryString = URLSearchParams | string | NodeJS.Dict | Iterable<[string, string]> | Array<[string, string]>; + type QueryString = ConstructorParameters[0]; + export type Options = https.RequestOptions & { idempotencyKey?: string; params?: QueryString;