π Search Terms
ReadableStreamGenericReader, Readable.fromWeb
π Version & Regression Information
β― Playground Link
No response
π» Code
import { Readable } from 'node:stream'
Readable.fromWeb(new Response().body!)
π Actual behavior
Argument of type 'ReadableStream<Uint8Array<ArrayBufferLike>>' is not assignable to parameter of type 'ReadableStream<any>'.
The types of 'getReader(...).closed' are incompatible between these types.
Type 'Promise<void>' is not assignable to type 'Promise<undefined>'.
Type 'void' is not assignable to type 'undefined'.
π Expected behavior
No type error.
Additional information about the issue
No response