@@ -137,15 +137,15 @@ export interface ClientOptions {
137
137
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
138
138
* much longer than this timeout before the promise succeeds or fails.
139
139
*/
140
- timeout ?: number ;
140
+ timeout ?: number | undefined ;
141
141
142
142
/**
143
143
* An HTTP agent used to manage HTTP(S) connections.
144
144
*
145
145
* If not provided, an agent will be constructed by default in the Node.js environment,
146
146
* otherwise no agent is used.
147
147
*/
148
- httpAgent ?: Agent ;
148
+ httpAgent ?: Agent | undefined ;
149
149
150
150
/**
151
151
* Specify a custom `fetch` function implementation.
@@ -161,29 +161,29 @@ export interface ClientOptions {
161
161
*
162
162
* @default 2
163
163
*/
164
- maxRetries ?: number ;
164
+ maxRetries ?: number | undefined ;
165
165
166
166
/**
167
167
* Default headers to include with every request to the API.
168
168
*
169
169
* These can be removed in individual requests by explicitly setting the
170
170
* header to `undefined` or `null` in request options.
171
171
*/
172
- defaultHeaders ?: Core . Headers ;
172
+ defaultHeaders ?: Core . Headers | undefined ;
173
173
174
174
/**
175
175
* Default query parameters to include with every request to the API.
176
176
*
177
177
* These can be removed in individual requests by explicitly setting the
178
178
* param to `undefined` in request options.
179
179
*/
180
- defaultQuery ?: Core . DefaultQuery ;
180
+ defaultQuery ?: Core . DefaultQuery | undefined ;
181
181
182
182
/**
183
183
* By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
184
184
* Only set this option to `true` if you understand the risks and have appropriate mitigations in place.
185
185
*/
186
- dangerouslyAllowBrowser ?: boolean ;
186
+ dangerouslyAllowBrowser ?: boolean | undefined ;
187
187
}
188
188
189
189
/**
0 commit comments