Creates and synchronizes TypeScript Definition files (d.ts) from C#/VB model classes 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. From C# to .d.ts fileThis extension will automatically generate .d.ts files from any C#/VB file you specify. It will turn the following C# class into a TypeScript interface. class Customer { public int Id { get; set; } public string Name { get; set; } public IEnumerable<string> Tags { get; set; } } Becomes this .d.ts file: declare module server { interface customer { id: number; name: string; tags: string[]; } } The generated .d.ts file can then be consumed from your own TypeScript files by referencing Generate d.ts file from C#/VBTo generate a .d.ts file, right-click any .cs or .vb file and select Generate TypeScript Definition. A .d.ts file is created and nested under the parent C#/VB file. Every time the C#/VB file is modified and saved, the content of the .d.ts file is updated to reflect the changes. SettingsConfigure this extension from the Tools -> Options dialog. ContributeCheck out the contribution guidelines if you want to contribute to this project. For cloning and building this project yourself, make sure to install the Extensibility Tools 2015 extension for Visual Studio which enables some features used by this project. License |