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

Option to add custom type mapping #26

Open
antal-huck opened this issue Jun 4, 2021 · 2 comments
Open

Option to add custom type mapping #26

antal-huck opened this issue Jun 4, 2021 · 2 comments

Comments

@antal-huck
Copy link

I have a C# class with a property of type IFormFile and I would like to have CSharpToTypeScript transform this property to the type of a TypeScript File.

I suggest adding the option to add custom mapping rules (similar to Dates), e.g.

--addCustomMapping IFormFile File

@AdrianWilczynski
Copy link
Owner

Custom mapping option is a really good idea though in the case of IFormFile maybe we could just make File a default?

@antal-huck
Copy link
Author

Yes, indeed.

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