Skip to content

ReadableStreamReadResult interface is privateΒ #42970

@johnBartos

Description

@johnBartos

Bug Report

πŸ”Ž Search Terms

ReadableStream, ReadableStreamReadResult

πŸ•— Version & Regression Information

  • This changed between versions <= 4.1.5 and 4.2.x

⏯ Playground Link

Playground link with the bug (4.2.x)

Playground link without the bug (4.1.5)

πŸ’» Code

        const handleChunk = ({ done, value }: ReadableStreamReadResult<Uint8Array>) => {
            console.log(done, value);
        }

πŸ™ Actual behavior

  • Cannot find name 'ReadableStreamReadResult'.
  • Return type of public method from exported class has or is using private name 'ReadableStreamReadResult'.

πŸ™‚ Expected behavior

No type error

Metadata

Metadata

Assignees

Labels

Needs InvestigationThis issue needs a team member to investigate its status.RescheduledThis issue was previously scheduled to an earlier milestone

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions