TinyTypeGen 1.0.0.88-alpha

This is a prerelease version of TinyTypeGen.
dotnet add package TinyTypeGen --version 1.0.0.88-alpha
                    
NuGet\Install-Package TinyTypeGen -Version 1.0.0.88-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.88-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.88-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.88-alpha
                    
#r "nuget: TinyTypeGen, 1.0.0.88-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.88-alpha&prerelease
                    
Install TinyTypeGen as a Cake Addin
#tool nuget:?package=TinyTypeGen&version=1.0.0.88-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");

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. 
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 107 2 months ago
1.0.0.87-alpha 87 2 months ago
1.0.0.86-alpha 90 3 months ago
1.0.0.85-alpha 99 3 months ago
1.0.0.84-alpha 94 3 months ago
1.0.0.83-alpha 90 3 months ago
1.0.0.80-alpha 93 3 months ago
1.0.0.79-alpha 88 3 months ago
1.0.0.78-alpha 86 3 months ago
1.0.0.76-alpha 84 3 months ago
1.0.0.72-alpha 85 3 months ago
1.0.0.71-alpha 107 4 months ago
1.0.0.70-alpha 98 4 months ago
1.0.0.69-alpha 95 4 months ago
1.0.0.68-alpha 88 4 months ago
1.0.0.67-alpha 105 4 months ago
1.0.0.65-alpha 100 4 months ago
1.0.0.64-alpha 86 4 months ago
1.0.0.63-alpha 93 4 months ago
1.0.0.62-alpha 93 4 months ago
1.0.0.60-alpha 101 4 months ago
1.0.0.59-alpha 87 4 months ago
1.0.0.58-alpha 91 4 months ago
1.0.0.57-alpha 99 4 months ago
1.0.0.56-alpha 83 4 months ago
1.0.0.55-alpha 87 4 months ago
1.0.0.54-alpha 90 4 months ago
1.0.0.53-alpha 89 4 months ago
1.0.0.52-alpha 91 4 months ago
1.0.0.51-alpha 85 4 months ago
1.0.0.50-alpha 84 4 months ago
1.0.0.49-alpha 84 4 months ago
1.0.0.45-alpha 94 4 months ago
1.0.0.43-alpha 105 5 months ago
1.0.0.42-alpha 97 5 months ago
1.0.0.40-alpha 92 5 months ago
1.0.0.39-alpha 111 5 months ago
1.0.0.38-alpha 109 6 months ago
1.0.0.37-alpha 102 6 months ago
1.0.0.36-alpha 111 6 months ago
1.0.0.35-alpha 96 6 months ago
1.0.0.34-alpha 99 6 months ago
1.0.0.33-alpha 97 6 months ago
1.0.0.32-alpha 99 6 months ago
1.0.0.31-alpha 103 6 months ago
1.0.0.30-alpha 123 7 months ago
1.0.0.29-alpha 142 7 months ago
1.0.0.28-alpha 127 7 months ago
1.0.0.27-alpha 121 7 months ago
1.0.0.26-alpha 126 7 months ago
1.0.0.25-alpha 123 7 months ago
1.0.0.23-alpha 128 9 months ago
1.0.0.22-alpha 113 9 months ago
1.0.0.21-alpha 114 9 months ago
1.0.0.20-alpha 106 9 months ago
1.0.0.19-alpha 110 9 months ago
1.0.0.17-alpha 113 9 months ago
1.0.0.16-alpha 109 9 months ago
1.0.0.15-alpha 113 9 months ago
1.0.0.14-alpha 125 9 months ago
1.0.0.13-alpha 114 9 months ago
1.0.0.11-alpha 114 9 months ago
1.0.0.6-alpha 108 9 months ago
1.0.0.3-alpha 132 10 months ago
1.0.0.2-alpha 130 10 months ago
1.0.0.1-alpha 123 10 months ago
0.15.0 265 5/22/2024
0.14.0 170 5/22/2024
0.11.0 161 5/9/2024
0.10.0 151 4/11/2024
0.9.0 140 4/11/2024
0.8.0 134 4/9/2024
0.7.0 162 4/3/2024
0.6.1 186 3/22/2024
0.6.0 153 3/13/2024
0.4.5 149 2/19/2024
0.4.4 156 2/12/2024
0.4.3 143 2/12/2024
0.4.2 152 2/12/2024
0.4.1 289 1/23/2024
0.4.0 131 1/22/2024
0.3.0 157 1/22/2024
0.2.1 140 1/20/2024
0.2.0 135 1/20/2024
0.1.9 165 1/15/2024
0.1.8 138 1/9/2024
0.1.7 132 1/9/2024
0.1.6 172 12/7/2023
0.1.5 146 12/7/2023
0.1.4 151 12/7/2023
0.1.3 134 12/6/2023
0.1.2 149 12/6/2023
0.1.1 149 11/27/2023
0.1.0 139 11/26/2023