Skip to content

Commit

Permalink
nit: rename the rest param
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Mar 5, 2024
1 parent 8ceddad commit 66c617d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/base/http-clients/ky-http-client.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class HttpClient<SecurityDataType = unknown> {
query,
format,
body,
...requestParams
...options
<% if (config.unwrapResponseData) { %>
}: FullRequestParams): Promise<T> => {
<% } else { %>
Expand All @@ -100,9 +100,9 @@ export class HttpClient<SecurityDataType = unknown> {
}

const request = this.ky(path, {
...requestParams,
...options,
headers: {
...(requestParams.headers || {}),
...(options.headers || {}),
...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
},
searchParams: query,
Expand Down

0 comments on commit 66c617d

Please sign in to comment.