Closed oscarhermoso closed 6 months ago
Hello @oscarhermoso , first of all thank you for the PR! I think this change makes sense.
I believe this issue comes from Bun, they used to declare their own global types and overwrite the node ones. https://github.com/oven-sh/bun/blob/1bf28e0d77a8b2261befbdb708cefd03e0126960/packages/bun-types/globals.d.ts#L1318
Small change to remove the "timeout" property from
Options
(derived fromPick<FetchEventSourceInit, ...>
)Browser fetch doesn't actually have this option, so it's type is "unknown", resulting in a TS error:
https://fetch.spec.whatwg.org/#requestinit
Resolves TS error: