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

Handling Class Constructors? #324

Open
s4m0r4m4 opened this issue Jan 13, 2020 · 0 comments
Open

Handling Class Constructors? #324

s4m0r4m4 opened this issue Jan 13, 2020 · 0 comments

Comments

@s4m0r4m4
Copy link

s4m0r4m4 commented Jan 13, 2020

Thanks for such a useful plugin!

Is there a way to handle constructors? After reviewing the documentation and open issues here and on stackoverflow, I haven't found anything that indicates that TypeWriter knows about constructors.

Ideally, it would provide the ability to create a typescript constructor that matches the C# one in terms of parameter types and ordering. Right now, I am left to infer the constructor parameters by simply assuming every property is needed in the constructor signature, but this isn't a good long-term solution.

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