Skip to content

Commit abc30a1

Browse files
committed
fix: fix json fetch options
1 parent 6a4d8f4 commit abc30a1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/iso-web/src/types.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,12 @@ export interface JSONRequestOptions {
112112
headers?: HeadersInit
113113
signal?: AbortSignal
114114
keepalive?: boolean
115-
timeout?: number
115+
/**
116+
* Timeout in milliseconds for the request, `false` to disable timeout
117+
*
118+
* @default 5000
119+
*/
120+
timeout?: number | false
116121
retry?: RetryOptions
117122
onResponse?: (
118123
response: Response,

0 commit comments

Comments
 (0)