Sink interface is too strict

Hello

Please have a look at the snippet from typings PR #41298 [1]

Notice the stream variable, which is plain readable stream, but has to be „degraded” to `any` because the parser import expects an RDF/JS Stream although in reality it can consume other streams too.

I think something is off with how the sink is defined...

Best,
Tom

[1]: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/41298

Received on Sunday, 29 December 2019 17:14:40 UTC