CSharpToTypeScript icon indicating copy to clipboard operation
CSharpToTypeScript copied to clipboard

Option to add custom type mapping

Open antal-huck opened this issue 3 years ago • 2 comments

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

antal-huck avatar Jun 04 '21 08:06 antal-huck

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

AdrianWilczynski avatar Jun 04 '21 16:06 AdrianWilczynski

Yes, indeed.

antal-huck avatar Jun 04 '21 16:06 antal-huck