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/
Would it make sense to add an option --interface-name-suffix <string> to allow modification of the interface's name?
Example: Suppose we have a C# class called ExampleClass. I would like to generate an interface with the name ExampleClassInterface. This could be achieved with the option --interface-name-suffix Interface.
Use case: Later I can easily create a TypeScript class ExampleClass that implements ExampleClassInterface. This I could not do, if the interface itself is already called ExampleClass, or I would need to do something like this:
import {ExampleClass as ExampleClassInterface} from "bla";
It could also be the option --interface-name-prefix I to generate IExampleClass.
Would it make sense to add an option
--interface-name-suffix <string>
to allow modification of the interface's name?Example: Suppose we have a C# class called
ExampleClass
. I would like to generate an interface with the nameExampleClassInterface
. This could be achieved with the option--interface-name-suffix Interface
.Use case: Later I can easily create a TypeScript class
ExampleClass
that implementsExampleClassInterface
. This I could not do, if the interface itself is already calledExampleClass
, or I would need to do something like this:import {ExampleClass as ExampleClassInterface} from "bla";
It could also be the option
--interface-name-prefix I
to generateIExampleClass
.