partytracks@0.0.56
·
44 commits
to main
since this release
Patch Changes
-
#374
c05d86aThanks @threepointone! - Fix type errors under newer@cloudflare/workers-typesand TypeScript lib typings:- Avoid
typeof fetchin internal signatures — CF workers-types mergesfetchwith theFetcherinterface (which hasfetch()andconnect()methods), which doesn't match a plain fetch function. Internal helpers now use an explicit(input, init?) => Promise<Response>signature. - Rename the internal
fetcheroption onfromFetchtofetchImplto avoid colliding with CF's built-inRequestInit.fetcher?: Fetcher | null, which was intersected in and made the property uncallable. - Cast
Response#json()results (which are now typedunknown) before destructuring{ sessionId }/{ iceServers }.
All changes are internal; no public API changes.
- Avoid