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

Class constructor type from instance #8261

Closed
srolel opened this issue Apr 23, 2016 · 1 comment
Closed

Class constructor type from instance #8261

srolel opened this issue Apr 23, 2016 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@srolel
Copy link
Contributor

srolel commented Apr 23, 2016

TypeScript Version:

1.8.10

Code

    class ClassWithStaticProp {
        static prop = {};
    }

    const instance = new ClassWithStaticProp();

    // instance.constructor has no type information

Expected behavior:

instance.constructor should have the same type as the ClassWithStaticProp constructor function.

Actual behavior:

instance.constructor has no type information

@srolel srolel changed the title class constructor type from instance Class constructor type from instance Apr 23, 2016
@Arnavion
Copy link
Contributor

Duplicate of #3841

@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Apr 25, 2016
@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