TinyTypeGen 1.0.0.71-alpha
See the version list below for details.
dotnet add package TinyTypeGen --version 1.0.0.71-alpha
NuGet\Install-Package TinyTypeGen -Version 1.0.0.71-alpha
<PackageReference Include="TinyTypeGen" Version="1.0.0.71-alpha" />
<PackageVersion Include="TinyTypeGen" Version="1.0.0.71-alpha" />
<PackageReference Include="TinyTypeGen" />
paket add TinyTypeGen --version 1.0.0.71-alpha
#r "nuget: TinyTypeGen, 1.0.0.71-alpha"
#:package TinyTypeGen@1.0.0.71-alpha
#addin nuget:?package=TinyTypeGen&version=1.0.0.71-alpha&prerelease
#tool nuget:?package=TinyTypeGen&version=1.0.0.71-alpha&prerelease
TinyTypeGen
This library can generate TypeScript types for C# and F# types or more precisely for their corresponding JSON serialized data. Thus it can be used in JavaScript/TypeScript clients to have a strongly typed interface to a dotnet backend.
F# types like records (including anonymous records) and unions as well as F# collections like list<'T>, Map<'T> and Set<'T> are supported.
Get started
dotnet add package TinyTypeGen --version 1.0.0.21-alpha
var builder = new TinyTypeGen.GeneratorBuilder();
builder.AddTypes([typeof(FSharpResult<,>), typeof(MyType)])
builder.AddEndpoints(MyModule.endpoints);
var generator = builder.Build();
generator.RenderTypesToDirectory("../my-client/src/client/");
generator.RenderApiToFile("../my-client/src/client/api.ts");
todo remove/ignore
System Type IntPtr RuntimeFieldHandle RuntimeTypeHandle ModuleHandle
System.Security System.Runtime.InteropServices System.Reflection AspNetCore Mvc AspNetCore Http
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- FSharp.Core (>= 8.0.100)
- FSharp.SystemTextJson (>= 1.2.42)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on TinyTypeGen:
| Package | Downloads |
|---|---|
|
TinyTypeGen.Giraffe
Package Description |
|
|
TinyTypeGen.AspNetCore
Package Description |
|
|
TinyTypeGen.NodaTime
Package Description |
|
|
TinyTypeGen.SignalR
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0.79-alpha | 167 | 1/23/2025 |
| 1.0.0.71-alpha | 220 | 12/10/2024 |
| 1.0.0-alpha.194 | 0 | 4/10/2026 |
| 1.0.0-alpha.193 | 0 | 4/10/2026 |
| 1.0.0-alpha.192 | 45 | 4/5/2026 |
| 1.0.0-alpha.191 | 61 | 4/5/2026 |
| 1.0.0-alpha.189 | 48 | 3/22/2026 |
| 0.10.0 | 277 | 4/11/2024 |