Skip to content

ReadableStream constructor args not supported #17247

Closed
@asakusuma

Description

@asakusuma

TypeScript Version: 2.4.1

It would be nice for this part of the spec to be supported: https://streams.spec.whatwg.org/#rs-constructor

Code

const stream = new ReadableStream({
  start(controller) {
    controller.close();
  }
});

Expected behavior: Code should compile

Actual behavior: Supplied parameters do not match any signature of call target. error. I assume this is because the built-in types aren't expecting any arguments passed into the constructor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions