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

Object.constructor should have a constructor type #14674

Closed
JonathanMEdwards opened this issue Mar 15, 2017 · 2 comments
Closed

Object.constructor should have a constructor type #14674

JonathanMEdwards opened this issue Mar 15, 2017 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@JonathanMEdwards
Copy link

in lib.es6.d.ts:
interface Object {
constructor: Function;

Shouldn't this be:
constructor: { new (...args: any[]): any };

so that it is well-typed to say:
new x.constructor

@mhegazy
Copy link
Contributor

mhegazy commented Mar 15, 2017

#3841?

@JonathanMEdwards
Copy link
Author

more specifically dup of #4356

@mhegazy mhegazy added the Duplicate An existing issue was already created label Mar 15, 2017
@mhegazy mhegazy closed this as completed Mar 15, 2017
@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

2 participants