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
This issue has been marked as 'Question' and has seen no recent activity. It has been automatically closed for house-keeping purposes. If you're still waiting on a response, questions are usually better suited to stackoverflow.
I've made a factory which works in JS, but it is not respected in TS
So in TS when I call
m.on
I getProperty 'on' does not exist on type 'ModelInstance<number, { reset(): number; }>'.ts(2339)
I expect that TS would accept
m.on
and then correctly apply types to the callbacks. I suspect this is a bug, but if it's not, then how I type this?Below is my original function which works via generics, but I'm looking to unload the arguments as in the above example:
The text was updated successfully, but these errors were encountered: