mirror of
https://github.com/jlengrand/adyen-node-api-library.git
synced 2026-03-10 08:01:20 +00:00
PW-7502: Bind QueryString type to URLSearchParams (#1077)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user