You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type 'Response' is missing the following properties from type 'Response': webSocket, cf, bytests(2739)
or with the alternative format (creating a new Response):
Argument of type 'ReadableStream<any> | null' is not assignable to parameter of type 'BodyInit | null | undefined'.
Type 'ReadableStream<any>' is not assignable to type 'BodyInit | null | undefined'.
Type 'ReadableStream<any>' is not assignable to type 'ReadableStream<Uint8Array>'.
The types returned by 'getReader(...)' are incompatible between these types.
Property 'readAtLeast' is missing in type 'ReadableStreamDefaultReader<any>' but required in type 'ReadableStreamBYOBReader'.ts(2345)
The text was updated successfully, but these errors were encountered:
Which Cloudflare product(s) does this pertain to?
C3 (npm create cloudflare)
What version(s) of the tool(s) are you using?
2.22.2 [C3]
What version of Node are you using?
20.15.1
What operating system and version are you using?
Ubuntu through WSL
Describe the Bug
Observed behavior
Please describe.
Expected behavior
Please describe.
Steps to reproduce
npm cloudflare create
with the"Hello World" Worker
and with TypeScriptfetch
handler, return the response from the globalfetch()
I tried an alternative syntax and it also fails with a different error:
Please provide a link to a minimal reproduction
https://github.com/davidbarratt/worker-types/blob/b75bd22eab7d8ab9bfb65362360d5015ad351aa4/src/index.ts#L15-L17
You can see the error if you go to the
src/index.ts
file here (and wait for TypeScript to load):https://stackblitz.com/~/github.com/davidbarratt/worker-types
Please provide any relevant error logs
or with the alternative format (creating a new
Response
):The text was updated successfully, but these errors were encountered: