From 66c617d6ba30ec2723fb6e948302a61a0a4d18ed Mon Sep 17 00:00:00 2001 From: Alec Larson <1925840+aleclarson@users.noreply.github.com> Date: Tue, 5 Mar 2024 01:51:11 -0500 Subject: [PATCH] nit: rename the rest param --- templates/base/http-clients/ky-http-client.ejs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/base/http-clients/ky-http-client.ejs b/templates/base/http-clients/ky-http-client.ejs index 6c6a8c11..87d73093 100644 --- a/templates/base/http-clients/ky-http-client.ejs +++ b/templates/base/http-clients/ky-http-client.ejs @@ -85,7 +85,7 @@ export class HttpClient { query, format, body, - ...requestParams + ...options <% if (config.unwrapResponseData) { %> }: FullRequestParams): Promise => { <% } else { %> @@ -100,9 +100,9 @@ export class HttpClient { } const request = this.ky(path, { - ...requestParams, + ...options, headers: { - ...(requestParams.headers || {}), + ...(options.headers || {}), ...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}), }, searchParams: query,