Getting Started
Rivet reads your C# types and endpoints and generates TypeScript from them.
Install
bash
dotnet add package Rivet.Attributes --version "*"
dotnet tool install --global dotnet-rivetGenerate
bash
dotnet rivet --project path/to/Api.csproj --output ./generatedBy default this gives you:
types/for generated TypeScript typesclient/for generated client modulesrivet.tsfor runtime configuration and fetch helpers
Optional Runtime Validation
bash
dotnet rivet --project path/to/Api.csproj --output ./generated --compileThis also emits:
schemas.tsvalidators.ts
Next
- Follow the Tutorial
- Check the CLI Reference
- See the docs site as a work in progress while the rewrite lands
