TinyTypeGen 1.0.0.27-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.27-alpha
                    
NuGet\Install-Package TinyTypeGen -Version 1.0.0.27-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.27-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.27-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.27-alpha
                    
#r "nuget: TinyTypeGen, 1.0.0.27-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.
#addin nuget:?package=TinyTypeGen&version=1.0.0.27-alpha&prerelease
                    
Install TinyTypeGen as a Cake Addin
#tool nuget:?package=TinyTypeGen&version=1.0.0.27-alpha&prerelease
                    
Install TinyTypeGen 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");
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 (3)

Showing the top 3 NuGet packages that depend on TinyTypeGen:

Package Downloads
TinyTypeGen.Giraffe

Package Description

TinyTypeGen.AspNetCore

Package Description

TinyTypeGen.NodaTime

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0.88-alpha 113 2/16/2025
1.0.0.87-alpha 91 1/27/2025
1.0.0.86-alpha 95 1/23/2025
1.0.0.85-alpha 103 1/23/2025
1.0.0.84-alpha 98 1/23/2025
1.0.0.83-alpha 94 1/23/2025
1.0.0.80-alpha 100 1/23/2025
1.0.0.79-alpha 93 1/23/2025
1.0.0.78-alpha 93 1/22/2025
1.0.0.76-alpha 90 1/22/2025
1.0.0.72-alpha 90 1/22/2025
1.0.0.71-alpha 119 12/10/2024
1.0.0.70-alpha 103 12/9/2024
1.0.0.69-alpha 100 12/8/2024
1.0.0.68-alpha 93 12/8/2024
1.0.0.67-alpha 110 12/8/2024
1.0.0.65-alpha 105 12/5/2024
1.0.0.64-alpha 92 12/5/2024
1.0.0.63-alpha 99 12/5/2024
1.0.0.62-alpha 98 12/5/2024
1.0.0.60-alpha 106 12/4/2024
1.0.0.59-alpha 92 12/4/2024
1.0.0.58-alpha 96 12/4/2024
1.0.0.57-alpha 104 12/4/2024
1.0.0.56-alpha 88 12/4/2024
1.0.0.55-alpha 92 12/4/2024
1.0.0.54-alpha 95 12/3/2024
1.0.0.53-alpha 96 12/3/2024
1.0.0.52-alpha 97 12/3/2024
1.0.0.51-alpha 90 12/3/2024
1.0.0.50-alpha 91 12/3/2024
1.0.0.49-alpha 90 12/3/2024
1.0.0.45-alpha 100 12/1/2024
1.0.0.43-alpha 111 11/19/2024
1.0.0.42-alpha 102 11/19/2024
1.0.0.40-alpha 96 11/14/2024
1.0.0.39-alpha 115 11/5/2024
1.0.0.38-alpha 113 10/24/2024
1.0.0.37-alpha 106 10/24/2024
1.0.0.36-alpha 115 10/16/2024
1.0.0.35-alpha 101 10/16/2024
1.0.0.34-alpha 103 10/16/2024
1.0.0.33-alpha 101 10/16/2024
1.0.0.32-alpha 104 10/16/2024
1.0.0.31-alpha 107 10/16/2024
1.0.0.30-alpha 127 9/18/2024
1.0.0.29-alpha 146 9/14/2024
1.0.0.28-alpha 132 9/14/2024
1.0.0.27-alpha 125 9/14/2024
1.0.0.26-alpha 131 9/13/2024
1.0.0.25-alpha 127 8/27/2024
1.0.0.23-alpha 134 7/21/2024
1.0.0.22-alpha 118 7/21/2024
1.0.0.21-alpha 118 7/21/2024
1.0.0.20-alpha 111 7/21/2024
1.0.0.19-alpha 114 7/21/2024
1.0.0.17-alpha 117 7/21/2024
1.0.0.16-alpha 113 7/20/2024
1.0.0.15-alpha 117 7/20/2024
1.0.0.14-alpha 129 7/20/2024
1.0.0.13-alpha 118 7/20/2024
1.0.0.11-alpha 118 7/20/2024
1.0.0.6-alpha 112 7/19/2024
1.0.0.3-alpha 136 6/16/2024
1.0.0.2-alpha 134 6/16/2024
1.0.0.1-alpha 127 6/16/2024
0.15.0 309 5/22/2024
0.14.0 182 5/22/2024
0.11.0 178 5/9/2024
0.10.0 163 4/11/2024
0.9.0 152 4/11/2024
0.8.0 145 4/9/2024
0.7.0 172 4/3/2024
0.6.1 198 3/22/2024
0.6.0 165 3/13/2024
0.4.5 160 2/19/2024
0.4.4 167 2/12/2024
0.4.3 160 2/12/2024
0.4.2 164 2/12/2024
0.4.1 300 1/23/2024
0.4.0 142 1/22/2024
0.3.0 167 1/22/2024
0.2.1 149 1/20/2024
0.2.0 144 1/20/2024
0.1.9 176 1/15/2024
0.1.8 151 1/9/2024
0.1.7 146 1/9/2024
0.1.6 182 12/7/2023
0.1.5 157 12/7/2023
0.1.4 163 12/7/2023
0.1.3 145 12/6/2023
0.1.2 161 12/6/2023
0.1.1 159 11/27/2023
0.1.0 150 11/26/2023