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

// Install TinyTypeGen as a Cake Tool
#tool nuget:?package=TinyTypeGen&version=1.0.0.80-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.  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 99 14 days ago
1.0.0.87-alpha 79 a month ago
1.0.0.86-alpha 82 a month ago
1.0.0.85-alpha 95 a month ago
1.0.0.84-alpha 90 a month ago
1.0.0.83-alpha 85 a month ago
1.0.0.80-alpha 85 a month ago
1.0.0.79-alpha 84 a month ago
1.0.0.78-alpha 82 a month ago
1.0.0.76-alpha 80 a month ago
1.0.0.72-alpha 79 a month ago
1.0.0.71-alpha 103 3 months ago
1.0.0.70-alpha 96 3 months ago
1.0.0.69-alpha 93 3 months ago
1.0.0.68-alpha 86 3 months ago
1.0.0.67-alpha 101 3 months ago
1.0.0.65-alpha 98 3 months ago
1.0.0.64-alpha 84 3 months ago
1.0.0.63-alpha 91 3 months ago
1.0.0.62-alpha 91 3 months ago
1.0.0.60-alpha 99 3 months ago
1.0.0.59-alpha 85 3 months ago
1.0.0.58-alpha 89 3 months ago
1.0.0.57-alpha 97 3 months ago
1.0.0.56-alpha 81 3 months ago
1.0.0.55-alpha 85 3 months ago
1.0.0.54-alpha 88 3 months ago
1.0.0.53-alpha 85 3 months ago
1.0.0.52-alpha 89 3 months ago
1.0.0.51-alpha 83 3 months ago
1.0.0.50-alpha 82 3 months ago
1.0.0.49-alpha 82 3 months ago
1.0.0.45-alpha 92 3 months ago
1.0.0.43-alpha 104 3 months ago
1.0.0.42-alpha 95 3 months ago
1.0.0.40-alpha 90 4 months ago
1.0.0.39-alpha 109 4 months ago
1.0.0.38-alpha 108 4 months ago
1.0.0.37-alpha 101 4 months ago
1.0.0.36-alpha 110 4 months ago
1.0.0.35-alpha 95 4 months ago
1.0.0.34-alpha 98 4 months ago
1.0.0.33-alpha 96 4 months ago
1.0.0.32-alpha 98 4 months ago
1.0.0.31-alpha 102 4 months ago
1.0.0.30-alpha 122 5 months ago
1.0.0.29-alpha 141 6 months ago
1.0.0.28-alpha 126 6 months ago
1.0.0.27-alpha 120 6 months ago
1.0.0.26-alpha 125 6 months ago
1.0.0.25-alpha 122 6 months ago
1.0.0.23-alpha 127 7 months ago
1.0.0.22-alpha 112 7 months ago
1.0.0.21-alpha 113 7 months ago
1.0.0.20-alpha 105 7 months ago
1.0.0.19-alpha 109 7 months ago
1.0.0.17-alpha 112 7 months ago
1.0.0.16-alpha 108 7 months ago
1.0.0.15-alpha 112 7 months ago
1.0.0.14-alpha 124 7 months ago
1.0.0.13-alpha 113 7 months ago
1.0.0.11-alpha 113 7 months ago
1.0.0.6-alpha 107 7 months ago
1.0.0.3-alpha 132 8 months ago
1.0.0.2-alpha 130 8 months ago
1.0.0.1-alpha 123 8 months ago
0.15.0 263 9 months ago
0.14.0 170 9 months ago
0.11.0 159 10 months ago
0.10.0 151 4/11/2024
0.9.0 140 4/11/2024
0.8.0 133 4/9/2024
0.7.0 161 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 155 2/12/2024
0.4.3 143 2/12/2024
0.4.2 152 2/12/2024
0.4.1 288 1/23/2024
0.4.0 130 1/22/2024
0.3.0 156 1/22/2024
0.2.1 140 1/20/2024
0.2.0 135 1/20/2024
0.1.9 164 1/15/2024
0.1.8 137 1/9/2024
0.1.7 131 1/9/2024
0.1.6 171 12/7/2023
0.1.5 146 12/7/2023
0.1.4 150 12/7/2023
0.1.3 133 12/6/2023
0.1.2 148 12/6/2023
0.1.1 148 11/27/2023
0.1.0 139 11/26/2023