Translates C# DTOs into compatible TypeScript classes
v1.0.0is released. In other words, as of now the API is a subject to change without any prior notice. Stable API is a part of
v1.0.0requirements, and when it is release, any new releases with breaking changes will affect the major version of the package.
# from <repoRoot> dotnet restore # from ./CSharpToTypeScript.Tests execute dotnet build dotnet test # from ./CSharpToTypeScript execute dotnet build dotnet run -- -c ../CSharpToTypeScript.Tests/TestFiles/sample.debug.cfg.json
Manual maintainance of compatible C# data transfer objects (DTO) and their TypeScript counterparts has always been burdensome. This library is intended to help generating TypeScript enums and classes based on C# type definitions.
List of NuGet packages built from this codebase:
CSharpToTypeScript.Core Default implementation of the translating library.
CSharpToTypeScript.SimpleInjector Provides default IoC setup using SimpleInjector as a framework.
CSharpToTypeScript A console application that binds things together and lets translation from command line (see syntax above).
Unit tests are available in CSharpToTypeScript.Tests project.
The code is distributed under the MIT license.
Reporting an issue, proposing a feature, or asking a question are all great ways to improve software quality.
Here are a few important things that package contributors will expect to see in a new born GitHub issue:
Contribution is the best way to improve any project!
git checkout -b my-new-feature).
git commit -am 'Added some feature')
git push origin my-new-feature)
…or follow steps described in a nice fork guide by Karl Broman