From c4c24df811bb653b29331d14a5b47ad6cd57bc9d Mon Sep 17 00:00:00 2001 From: milk717 Date: Thu, 29 Aug 2024 12:18:04 +0900 Subject: [PATCH] feat: allow string union types in searchParams Record value Updated the `SearchParamsOption` type to support string union types as valid values in the Record object, enhancing flexibility and compatibility with various use cases. --- source/types/options.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/types/options.ts b/source/types/options.ts index 1142617a..1254c70c 100644 --- a/source/types/options.ts +++ b/source/types/options.ts @@ -6,7 +6,7 @@ import type {RetryOptions} from './retry.js'; export type SearchParamsInit = string | string[][] | Record | URLSearchParams | undefined; // eslint-disable-next-line unicorn/prevent-abbreviations -export type SearchParamsOption = SearchParamsInit | Record | Array>; +export type SearchParamsOption = SearchParamsInit | Record | Array>; export type HttpMethod = 'get' | 'post' | 'put' | 'patch' | 'head' | 'delete';