TypeSharp is a CLI tool that automatically generates TypeScript type definitions from your C# models. Keep your ASP.NET Core backend and Nuxt/Vue frontend in perfect sync — no more manual type maintenance.
Direct C# parsing → TypeScript interface not classes,
using TypeSharp.Attributes; [TypeSharp] public class UserDto { public int Id { get; set; } public string Name { get; set; } public string? Email { get; set; } public UserRole Role { get; set; } public List<string> Tags { get; set; } }
Point at your models directory and run. Works out of the box.
Fully resolves class hierarchies and maps them to TypeScript extends.
Converts C# enums to TypeScript const enums or union types.
Handles nullable reference types and value types correctly.
Maps List<T>, IEnumerable<T>, Dictionary<K,V> to proper TS types.
Configure casing, output path, file splitting, and more.