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
As a heavy user of Typescript now there's one very annoying thing that I face all the time. It's the bad (or lack of) support for Function.prototype.apply/call/bind.
I don't know if this has been requested previously, but this is a big thing to me and I'd like to ask for a solution. Like it or not, bind is used a lot in javascript. Returning any is not a good solution IMHO. Functions are first-class citizens in Javascript, which is one of the reasons that it's the best language to me, but they're not so much in Typescript.
I don't have a syntax in mind unfortunately, so this is an open discussion. If anyone has any ideas please step in.
Cheers,
The text was updated successfully, but these errors were encountered:
Proposals #5453 and #6018 will allow us to type Function.prototype.apply/call/bind. I'm working on #6018 right now because it's useful in quite a few other places.
As a heavy user of Typescript now there's one very annoying thing that I face all the time. It's the bad (or lack of) support for
Function.prototype.apply/call/bind
.I don't know if this has been requested previously, but this is a big thing to me and I'd like to ask for a solution. Like it or not,
bind
is used a lot in javascript. Returningany
is not a good solution IMHO. Functions are first-class citizens in Javascript, which is one of the reasons that it's the best language to me, but they're not so much in Typescript.I don't have a syntax in mind unfortunately, so this is an open discussion. If anyone has any ideas please step in.
Cheers,
The text was updated successfully, but these errors were encountered: