TypeScript Definition Generator
NOTE: This is a customed redistribute
The orginal repo can be found here: https://github.com/madskristensen/TypeScriptDefinitionGenerator
Best regard for him!
Creates and synchronizes TypeScript Definition files (d.ts) from C# model classes(DTO) to build strongly typed web application where the server and client-side models are in sync. Works on all .NET project types
See the change log for changes and road map.
For Visual Studio 2015 support, install Web Essentials 2015
From C# to .d.ts file
This extension will automatically generate .d.ts files from any C# file you specify. It will turn the following C# class into a TypeScript interface.
For *.cs file like this
Becomes this .d.ts file:
The generated .d.ts file can then be consumed from your own TypeScript files by referencing
Generate d.ts file from C#
To generate a .d.ts file, right-click any .cs file and select Generate TypeScript Definition.
Then a .generated.d.ts file is created and nested under the parent C# file.
Loading More data ...