Skip to content

ReadableStreamGenericReader is incompatible with @types/node #61390

@gineika

Description

@gineika

🔎 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions