TinyTypeGen 1.0.0.87-alpha

This is a prerelease version of TinyTypeGen.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package TinyTypeGen --version 1.0.0.87-alpha
                    
NuGet\Install-Package TinyTypeGen -Version 1.0.0.87-alpha
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TinyTypeGen" Version="1.0.0.87-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TinyTypeGen" Version="1.0.0.87-alpha" />
                    
Directory.Packages.props
<PackageReference Include="TinyTypeGen" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TinyTypeGen --version 1.0.0.87-alpha
                    
#r "nuget: TinyTypeGen, 1.0.0.87-alpha"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TinyTypeGen@1.0.0.87-alpha
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TinyTypeGen&version=1.0.0.87-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TinyTypeGen&version=1.0.0.87-alpha&prerelease
                    
Install as a Cake Tool

TinyTypeGen

Nuget

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.188-alpha 105 2/25/2026
1.0.0.185-alpha 118 1/25/2026
1.0.0.171-alpha 113 1/22/2026
1.0.0.168-alpha 120 1/19/2026
1.0.0.88-alpha 208 2/16/2025
1.0.0.87-alpha 170 1/27/2025
1.0.0.86-alpha 174 1/23/2025
1.0.0.85-alpha 185 1/23/2025
1.0.0.84-alpha 191 1/23/2025
1.0.0.83-alpha 188 1/23/2025
1.0.0.80-alpha 183 1/23/2025
1.0.0.79-alpha 167 1/23/2025
1.0.0.78-alpha 171 1/22/2025
1.0.0.76-alpha 175 1/22/2025
1.0.0.72-alpha 170 1/22/2025
1.0.0.71-alpha 216 12/10/2024
1.0.0.70-alpha 188 12/9/2024
1.0.0.69-alpha 187 12/8/2024
1.0.0.68-alpha 176 12/8/2024
0.15.0 1,300 5/22/2024
Loading failed