Skip to content

ReadableStreamGenericReader is incompatible with @types/nodeΒ #61390

Closed as not planned
@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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions