Typewriter (original) (raw)

What is it?

Typewriter is a free extension for Visual Studio that generates TypeScript files from c# code files using TypeScript Templates.

This allows you to create fully typed TypeScript representations of server side API, models, controllers, SignalR hubs etc. that automatically updates when you make changes to your c# code.

By doing this you get TypeScript Intellisense and compile-time errors when the client- and server side code differs. This speeds up your development pace and increases the quality of your applications.

How does it work?

Typewriter works by adding support for TypeScript Template files (.tst) in Visual Studio.

A TypeScript Template is a TypeScript file with some extra features for extracting meta data about your c# source code such as classes, interfaces, properties and methods. The meta data in combination with the template files are then used to create TypeScript files that are kept in sync with the c# source files.

So if you add, remove or modify your c# code, the changes will be reflected in the generated TypeScript files automatically.