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

Invalid code generated for explicit interface member implementation #250

Open
nvirth opened this issue Nov 15, 2022 · 0 comments
Open

Invalid code generated for explicit interface member implementation #250

nvirth opened this issue Nov 15, 2022 · 0 comments

Comments

@nvirth
Copy link

nvirth commented Nov 15, 2022

Hi,

Using v1.6.1, this C# code:

namespace MyNamespace
{
    [TsInterface]
    public interface MyInterface
    {
        string Property { get; set; }
    }

    [TsInterface]
    public class MyClass : MyInterface
    {
        string MyInterface.Property
        {
            get => throw new NotImplementedException();
            set => throw new NotImplementedException();
        }
    }
}

will result in this generated TypeScript code:

module MyNamespace {
    export interface IMyClass extends IMyInterface
    {
        MyNamespace.MyInterface.Property: string; // <-- Property name is invalid
    }
}
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

1 participant