- Install NuGet package (https://nuget.org/packages/TypeLite/)
- Configure TypeLite in the
TypeLite.tt
file to generate interfaces for classes you want- Decorate your .NET classes with
[TsClass]
attribute and configure TypeLite to generate definitions for an assembly - --- OR ---
- Configure TypeLite to generate definitions for specific classes
- Decorate your .NET classes with
- Run
TypeLite.tt
file (right-click in the Solution Explorer and select Run custom tool - Use generated
TypeLite.d.ts
file with TypeScript interfaces