TypeRight 0.8.2

A simple tool designed to make it easy to autogenerate TypeScript files from C# classes and MVC actions.
This package adds a build task to create the scripts.  For the best experience, also use the VS extension
with the same name.

Install-Package TypeRight -Version 0.8.2
dotnet add package TypeRight --version 0.8.2
<PackageReference Include="TypeRight" Version="0.8.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TypeRight --version 0.8.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

TypeRight

TypeRight is a simple tool that generates TypeScript files from your C# objects and controller actions. This project stemmed from three annoying things I found while doing web development using C# and MVC:

  1. Making requests required entering a free text URL and parameter names. If anything changed, the request broke.
  2. If you wanted to strongly type a result from a web request, you would need to make the same C# object in TypeScript. This led to maintenance nightmares trying to keep those in sync.
  3. Using enums on the server and client required keeping them in sync as well

This tool solves all of those problems by auto-generating TypeScript files every time you build your project.

For the most up to date documentation, please see the project site.

TypeRight

TypeRight is a simple tool that generates TypeScript files from your C# objects and controller actions. This project stemmed from three annoying things I found while doing web development using C# and MVC:

  1. Making requests required entering a free text URL and parameter names. If anything changed, the request broke.
  2. If you wanted to strongly type a result from a web request, you would need to make the same C# object in TypeScript. This led to maintenance nightmares trying to keep those in sync.
  3. Using enums on the server and client required keeping them in sync as well

This tool solves all of those problems by auto-generating TypeScript files every time you build your project.

For the most up to date documentation, please see the project site.

Release Notes

Bug fixes

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.8.2 94 5/11/2019
0.8.1 85 5/4/2019
0.8.0 110 4/26/2019
0.7.2 163 4/23/2019
0.7.1 95 4/16/2019
0.6.1.1 169 10/11/2018
0.6.1 203 10/7/2018
0.6.0 200 10/5/2018
0.5.3 188 8/25/2018