Closed
Description
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.