Skip to content

Commit 66c617d

Browse files
committed
nit: rename the rest param
1 parent 8ceddad commit 66c617d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/base/http-clients/ky-http-client.ejs

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class HttpClient<SecurityDataType = unknown> {
8585
query,
8686
format,
8787
body,
88-
...requestParams
88+
...options
8989
<% if (config.unwrapResponseData) { %>
9090
}: FullRequestParams): Promise<T> => {
9191
<% } else { %>
@@ -100,9 +100,9 @@ export class HttpClient<SecurityDataType = unknown> {
100100
}
101101

102102
const request = this.ky(path, {
103-
...requestParams,
103+
...options,
104104
headers: {
105-
...(requestParams.headers || {}),
105+
...(options.headers || {}),
106106
...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
107107
},
108108
searchParams: query,

0 commit comments

Comments
 (0)