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

Create typescript intellisense file does not properly take into account inheritance relationships #677

Closed
mlschan opened this issue Feb 22, 2014 · 2 comments

Comments

@mlschan
Copy link

mlschan commented Feb 22, 2014

For example, we have the following CSharp classes:

public class ColorType
{
    public int Red { get; set; }
    public int Green { get; set; }
    public int Blue { get; set; }
}

public class TransparentColor: ColorType
{
    public int alpha { get; set; }
}

The generated TransparentColor typescript file is as follows:

declare module server {
    interface TransparentColor {
        alpha: number;
    }
}

But I believe it should be like this:

declare module server {
    interface TransparentColor extends ColorType {
        alpha: number;
    }
}
@mlschan
Copy link
Author

mlschan commented Feb 22, 2014

Oh, sorry, looks like I duplicated this issue.

#495

@mlschan mlschan closed this as completed Feb 22, 2014
@am11
Copy link
Contributor

am11 commented Apr 24, 2014

Please test with this build http://1drv.ms/1fv87dl. Let me know if there are issues in JS and/or TS intellisense.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants