Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better support for functions #6189

Closed
louy opened this issue Dec 21, 2015 · 2 comments
Closed

Better support for functions #6189

louy opened this issue Dec 21, 2015 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@louy
Copy link

louy commented Dec 21, 2015

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,

@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Dec 21, 2015
@RyanCavanaugh
Copy link
Member

Duplicate #212

@sandersn
Copy link
Member

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.

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants