You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node(done => open('somefile', 'r', done)) doesn't infer the callback value type since open returns nothing we can use as a reference. typeof open however can give some information.
I think what we might do is reintroduce the encaseN function. I had removed it because it's easily expressible using compose (node), but as you note, TypeScript cannot infer the type from a call to node.
Avaq
changed the title
Allow the Node function to infer the type of the callback
Allow TypeScript to infer the type of a Future created by node from its callback
Oct 24, 2019
Avaq
changed the title
Allow TypeScript to infer the type of a Future created by node from its callback
Allow TypeScript to infer the type of a Future created by node() from its callback
Oct 24, 2019
Originally posted by @tetsuo in #374 (comment)
The text was updated successfully, but these errors were encountered: