TinyTypeGen 1.0.0.30-alpha

This is a prerelease version of TinyTypeGen.
dotnet add package TinyTypeGen --version 1.0.0.30-alpha                
NuGet\Install-Package TinyTypeGen -Version 1.0.0.30-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.30-alpha" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TinyTypeGen --version 1.0.0.30-alpha                
#r "nuget: TinyTypeGen, 1.0.0.30-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.
// Install TinyTypeGen as a Cake Addin
#addin nuget:?package=TinyTypeGen&version=1.0.0.30-alpha&prerelease

// Install TinyTypeGen as a Cake Tool
#tool nuget:?package=TinyTypeGen&version=1.0.0.30-alpha&prerelease                

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. 
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.30-alpha 56 9/18/2024
1.0.0.29-alpha 71 9/14/2024
1.0.0.28-alpha 68 9/14/2024
1.0.0.27-alpha 68 9/14/2024
1.0.0.26-alpha 77 9/13/2024
1.0.0.25-alpha 77 8/27/2024
1.0.0.23-alpha 93 7/21/2024
1.0.0.22-alpha 66 7/21/2024
1.0.0.21-alpha 77 7/21/2024
1.0.0.20-alpha 71 7/21/2024
1.0.0.19-alpha 73 7/21/2024
1.0.0.17-alpha 69 7/21/2024
1.0.0.16-alpha 72 7/20/2024
1.0.0.15-alpha 73 7/20/2024
1.0.0.14-alpha 82 7/20/2024
1.0.0.13-alpha 70 7/20/2024
1.0.0.11-alpha 72 7/20/2024
1.0.0.6-alpha 69 7/19/2024
1.0.0.3-alpha 97 6/16/2024
1.0.0.2-alpha 93 6/16/2024
1.0.0.1-alpha 90 6/16/2024
0.15.0 136 5/22/2024
0.14.0 109 5/22/2024
0.11.0 115 5/9/2024
0.10.0 115 4/11/2024
0.9.0 100 4/11/2024
0.8.0 97 4/9/2024
0.7.0 114 4/3/2024
0.6.1 134 3/22/2024
0.6.0 116 3/13/2024
0.4.5 109 2/19/2024
0.4.4 120 2/12/2024
0.4.3 108 2/12/2024
0.4.2 112 2/12/2024
0.4.1 195 1/23/2024
0.4.0 96 1/22/2024
0.3.0 93 1/22/2024
0.2.1 103 1/20/2024
0.2.0 85 1/20/2024
0.1.9 96 1/15/2024
0.1.8 108 1/9/2024
0.1.7 97 1/9/2024
0.1.6 142 12/7/2023
0.1.5 113 12/7/2023
0.1.4 118 12/7/2023
0.1.3 102 12/6/2023
0.1.2 122 12/6/2023
0.1.1 115 11/27/2023
0.1.0 107 11/26/2023