TinyTypeGen 1.0.0.60-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.60-alpha                
NuGet\Install-Package TinyTypeGen -Version 1.0.0.60-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.60-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.60-alpha                
#r "nuget: TinyTypeGen, 1.0.0.60-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.60-alpha&prerelease

// Install TinyTypeGen as a Cake Tool
#tool nuget:?package=TinyTypeGen&version=1.0.0.60-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");

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. 
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.71-alpha 76 12/10/2024
1.0.0.70-alpha 79 12/9/2024
1.0.0.69-alpha 78 12/8/2024
1.0.0.68-alpha 72 12/8/2024
1.0.0.67-alpha 84 12/8/2024
1.0.0.65-alpha 84 12/5/2024
1.0.0.64-alpha 72 12/5/2024
1.0.0.63-alpha 77 12/5/2024
1.0.0.62-alpha 77 12/5/2024
1.0.0.60-alpha 86 12/4/2024
1.0.0.59-alpha 71 12/4/2024
1.0.0.58-alpha 75 12/4/2024
1.0.0.57-alpha 83 12/4/2024
1.0.0.56-alpha 68 12/4/2024
1.0.0.55-alpha 71 12/4/2024
1.0.0.54-alpha 73 12/3/2024
1.0.0.53-alpha 72 12/3/2024
1.0.0.52-alpha 75 12/3/2024
1.0.0.51-alpha 67 12/3/2024
1.0.0.50-alpha 72 12/3/2024
1.0.0.49-alpha 70 12/3/2024
1.0.0.45-alpha 78 12/1/2024
1.0.0.43-alpha 88 11/19/2024
1.0.0.42-alpha 79 11/19/2024
1.0.0.40-alpha 79 11/14/2024
1.0.0.39-alpha 96 11/5/2024
1.0.0.38-alpha 98 10/24/2024
1.0.0.37-alpha 91 10/24/2024
1.0.0.36-alpha 98 10/16/2024
1.0.0.35-alpha 83 10/16/2024
1.0.0.34-alpha 86 10/16/2024
1.0.0.33-alpha 85 10/16/2024
1.0.0.32-alpha 86 10/16/2024
1.0.0.31-alpha 93 10/16/2024
1.0.0.30-alpha 108 9/18/2024
1.0.0.29-alpha 133 9/14/2024
1.0.0.28-alpha 117 9/14/2024
1.0.0.27-alpha 112 9/14/2024
1.0.0.26-alpha 115 9/13/2024
1.0.0.25-alpha 115 8/27/2024
1.0.0.23-alpha 120 7/21/2024
1.0.0.22-alpha 105 7/21/2024
1.0.0.21-alpha 104 7/21/2024
1.0.0.20-alpha 98 7/21/2024
1.0.0.19-alpha 101 7/21/2024
1.0.0.17-alpha 106 7/21/2024
1.0.0.16-alpha 99 7/20/2024
1.0.0.15-alpha 102 7/20/2024
1.0.0.14-alpha 115 7/20/2024
1.0.0.13-alpha 104 7/20/2024
1.0.0.11-alpha 104 7/20/2024
1.0.0.6-alpha 101 7/19/2024
1.0.0.3-alpha 121 6/16/2024
1.0.0.2-alpha 123 6/16/2024
1.0.0.1-alpha 115 6/16/2024
0.15.0 245 5/22/2024
0.14.0 161 5/22/2024
0.11.0 153 5/9/2024
0.10.0 145 4/11/2024
0.9.0 134 4/11/2024
0.8.0 127 4/9/2024
0.7.0 155 4/3/2024
0.6.1 180 3/22/2024
0.6.0 146 3/13/2024
0.4.5 139 2/19/2024
0.4.4 146 2/12/2024
0.4.3 135 2/12/2024
0.4.2 146 2/12/2024
0.4.1 282 1/23/2024
0.4.0 122 1/22/2024
0.3.0 147 1/22/2024
0.2.1 134 1/20/2024
0.2.0 127 1/20/2024
0.1.9 158 1/15/2024
0.1.8 129 1/9/2024
0.1.7 123 1/9/2024
0.1.6 165 12/7/2023
0.1.5 140 12/7/2023
0.1.4 143 12/7/2023
0.1.3 127 12/6/2023
0.1.2 142 12/6/2023
0.1.1 140 11/27/2023
0.1.0 133 11/26/2023