@@ -182,15 +182,15 @@ export interface ClientOptions {
182182 * Note that request timeouts are retried by default, so in a worst-case scenario you may wait
183183 * much longer than this timeout before the promise succeeds or fails.
184184 */
185- timeout ?: number ;
185+ timeout ?: number | undefined ;
186186
187187 /**
188188 * An HTTP agent used to manage HTTP(S) connections.
189189 *
190190 * If not provided, an agent will be constructed by default in the Node.js environment,
191191 * otherwise no agent is used.
192192 */
193- httpAgent ?: Shims . Agent ;
193+ httpAgent ?: Shims . Agent | undefined ;
194194
195195 /**
196196 * Specify a custom `fetch` function implementation.
@@ -205,29 +205,29 @@ export interface ClientOptions {
205205 *
206206 * @default 2
207207 */
208- maxRetries ?: number ;
208+ maxRetries ?: number | undefined ;
209209
210210 /**
211211 * Default headers to include with every request to the API.
212212 *
213213 * These can be removed in individual requests by explicitly setting the
214214 * header to `null` in request options.
215215 */
216- defaultHeaders ?: HeadersLike ;
216+ defaultHeaders ?: HeadersLike | undefined ;
217217
218218 /**
219219 * Default query parameters to include with every request to the API.
220220 *
221221 * These can be removed in individual requests by explicitly setting the
222222 * param to `undefined` in request options.
223223 */
224- defaultQuery ?: Record < string , string | undefined > ;
224+ defaultQuery ?: Record < string , string | undefined > | undefined ;
225225
226226 /**
227227 * By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
228228 * Only set this option to `true` if you understand the risks and have appropriate mitigations in place.
229229 */
230- dangerouslyAllowBrowser ?: boolean ;
230+ dangerouslyAllowBrowser ?: boolean | undefined ;
231231
232232 /**
233233 * Set the log level.
0 commit comments