Closed janckerchen closed 6 years ago
You'd never wish to do that, other than debugging, I figure. So maybe it's fine as it is?
In JavaScript, .subscribe({})
should work. In TypeScript, I think it's a bug that it doesn't support {}
, because the argument should be Listener
, but under the hood, subscribe
uses addListener
, which in TypeScript correctly supports a Partial<Listener>
.
.subscribe({})
works just fine for me in JS/TS in 11.7
. Should we close?
It's very often to subscribe with empty listener, like
It's unnecessary to repeat this everytime, in typescript of couse