Description: Generates TypeScript types from C# entities, streamlining the development process between C# backend and TypeScript frontend.
Features
This extension provides the following commands to assist in your development workflow:
PNB: Gerar JSON das Entidades C#: Scans your C# project (.csproj) to extract entity definitions and generates a entities.json file. This JSON file serves as an intermediary for type generation.
PNB: Gerar Tipos TypeScript a partir do JSON: Takes the entities.json file and generates corresponding TypeScript type definition files (.d.ts), ensuring type safety and consistency in your frontend applications.
Usage
Generate JSON from C# Entities:
Right-click on your .csproj file in the VS Code Explorer.
Select "PNB: Gerar JSON das Entidades C#".
An entities.json file will be created in your project.
Generate TypeScript Types from JSON:
Right-click on the entities.json file in the VS Code Explorer.
Select "PNB: Gerar Tipos TypeScript a partir do JSON".
TypeScript definition files (.d.ts) will be generated based on the JSON content.