Closed wbobeirne closed 5 years ago
Good idea. We can declare generic streams that will allow us to feed the stream types to the listeners.
Typed streams have been released in v0.5.2-beta.5.
Y'all work fast, this is amazing. Thanks for the quick work!
It would be excellent of methods like
subscribeInvoices
orsubscribeTransactions
had typed data for their events. It looks like the default Readable class doesn't have a way of providing types for instances of it, so I'm not sure how this is done, but it'd certainly make working with these streams a lot easier.