AdrianWilczynski / CSharpToTypeScript

Convert C# Models, ViewModels and DTOs into their TypeScript equivalents using webapps, CLI Tool or VSCode extension. Links: https://marketplace.visualstudio.com/items?itemName=adrianwilczynski.csharp-to-typescript - https://csharptotypescript.azurewebsites.net - https://adrianwilczynski.github.io/CSharpToTypeScript/ - https://www.nuget.org/packages/CSharpToTypeScript.CLITool/
MIT License
114 stars 32 forks source link

Option to add custom type mapping #26

Open antal-huck opened 3 years ago

antal-huck commented 3 years ago

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 commented 3 years ago

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

antal-huck commented 3 years ago

Yes, indeed.