PW-7502: Bind QueryString type to URLSearchParams (#1077)

This commit is contained in:
Michael Paul
2022-12-30 13:22:21 +01:00
committed by GitHub
parent 277edb212c
commit a289846a16

View File

@@ -25,7 +25,8 @@ import * as https from "https";
import { URLSearchParams } from "url";
export namespace IRequest {
type QueryString = URLSearchParams | string | NodeJS.Dict<string | string[]> | Iterable<[string, string]> | Array<[string, string]>;
type QueryString = ConstructorParameters<typeof URLSearchParams>[0];
export type Options = https.RequestOptions & {
idempotencyKey?: string;
params?: QueryString;