Skip to content

Latest commit

 

History

History
20 lines (11 loc) · 852 Bytes

README.md

File metadata and controls

20 lines (11 loc) · 852 Bytes

SampleWebAPI

This is a vanilla File -> New Project -> MVC Internet Website project with a goal of demonstrating how you might use ToTypeScriptD to generate TypeScript type definition (.d.ts) files automatically from your .Net assembly(s).

cinst ToTypeScriptD

Get the type definitions out of your MVC project

ToTypeScriptD dotnet SampleWebAPI\bin\SampleWebAPI.dll

Save the output to a file

ToTypeScriptD dotnet SampleWebAPI\bin\SampleWebAPI.dll > SampleWebAPITypeDefinitions.d.ts

Only get types in a specific namespace

ToTypeScriptD dotnet SampleWebAPI\bin\SampleWebAPI.dll --regexFilter "SampleWebAPI.Controllers"