Skip to content

Request: Allow call signatures on classes #584

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

Closed
rjamesnw opened this issue Sep 2, 2014 · 2 comments
Closed

Request: Allow call signatures on classes #584

rjamesnw opened this issue Sep 2, 2014 · 2 comments
Labels
Duplicate An existing issue was already created Suggestion An idea for TypeScript

Comments

@rjamesnw
Copy link

rjamesnw commented Sep 2, 2014

Moving over request from here: https://typescript.codeplex.com/workitem/2464

Proposed Solution:

class A {
    [index: number]: A; // <- since you can already do this
    (...args): A; // <- why not allow this also?
    constructor(...args) { }
}
@RyanCavanaugh
Copy link
Member

Duplicate of #183

@rjamesnw
Copy link
Author

rjamesnw commented Sep 9, 2014

Sorry, I'm losing my mind. I think it open this request twice. :/ I did search first, not sure how I missed it. Working too late I guess. ;)

@microsoft microsoft locked and limited conversation to collaborators Jun 18, 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 Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

2 participants