TinyTypeGen 1.0.0.38-alpha
See the version list below for details.
dotnet add package TinyTypeGen --version 1.0.0.38-alpha
NuGet\Install-Package TinyTypeGen -Version 1.0.0.38-alpha
<PackageReference Include="TinyTypeGen" Version="1.0.0.38-alpha" />
paket add TinyTypeGen --version 1.0.0.38-alpha
#r "nuget: TinyTypeGen, 1.0.0.38-alpha"
// Install TinyTypeGen as a Cake Addin #addin nuget:?package=TinyTypeGen&version=1.0.0.38-alpha&prerelease // Install TinyTypeGen as a Cake Tool #tool nuget:?package=TinyTypeGen&version=1.0.0.38-alpha&prerelease
TinyTypeGen
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 | Versions 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. |
-
net8.0
- FSharp.Core (>= 8.0.100)
- FSharp.SystemTextJson (>= 1.2.42)
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.43-alpha | 71 | 11/19/2024 |
1.0.0.42-alpha | 68 | 11/19/2024 |
1.0.0.40-alpha | 71 | 11/14/2024 |
1.0.0.39-alpha | 95 | 11/5/2024 |
1.0.0.38-alpha | 90 | 10/24/2024 |
1.0.0.37-alpha | 89 | 10/24/2024 |
1.0.0.36-alpha | 95 | 10/16/2024 |
1.0.0.35-alpha | 82 | 10/16/2024 |
1.0.0.34-alpha | 81 | 10/16/2024 |
1.0.0.33-alpha | 82 | 10/16/2024 |
1.0.0.32-alpha | 85 | 10/16/2024 |
1.0.0.31-alpha | 88 | 10/16/2024 |
1.0.0.30-alpha | 107 | 9/18/2024 |
1.0.0.29-alpha | 130 | 9/14/2024 |
1.0.0.28-alpha | 116 | 9/14/2024 |
1.0.0.27-alpha | 107 | 9/14/2024 |
1.0.0.26-alpha | 114 | 9/13/2024 |
1.0.0.25-alpha | 109 | 8/27/2024 |
1.0.0.23-alpha | 119 | 7/21/2024 |
1.0.0.22-alpha | 102 | 7/21/2024 |
1.0.0.21-alpha | 103 | 7/21/2024 |
1.0.0.20-alpha | 97 | 7/21/2024 |
1.0.0.19-alpha | 100 | 7/21/2024 |
1.0.0.17-alpha | 99 | 7/21/2024 |
1.0.0.16-alpha | 98 | 7/20/2024 |
1.0.0.15-alpha | 101 | 7/20/2024 |
1.0.0.14-alpha | 114 | 7/20/2024 |
1.0.0.13-alpha | 103 | 7/20/2024 |
1.0.0.11-alpha | 102 | 7/20/2024 |
1.0.0.6-alpha | 97 | 7/19/2024 |
1.0.0.3-alpha | 120 | 6/16/2024 |
1.0.0.2-alpha | 118 | 6/16/2024 |
1.0.0.1-alpha | 114 | 6/16/2024 |
0.15.0 | 234 | 5/22/2024 |
0.14.0 | 156 | 5/22/2024 |
0.11.0 | 148 | 5/9/2024 |
0.10.0 | 142 | 4/11/2024 |
0.9.0 | 132 | 4/11/2024 |
0.8.0 | 123 | 4/9/2024 |
0.7.0 | 152 | 4/3/2024 |
0.6.1 | 177 | 3/22/2024 |
0.6.0 | 144 | 3/13/2024 |
0.4.5 | 136 | 2/19/2024 |
0.4.4 | 143 | 2/12/2024 |
0.4.3 | 130 | 2/12/2024 |
0.4.2 | 141 | 2/12/2024 |
0.4.1 | 279 | 1/23/2024 |
0.4.0 | 119 | 1/22/2024 |
0.3.0 | 142 | 1/22/2024 |
0.2.1 | 131 | 1/20/2024 |
0.2.0 | 124 | 1/20/2024 |
0.1.9 | 154 | 1/15/2024 |
0.1.8 | 124 | 1/9/2024 |
0.1.7 | 120 | 1/9/2024 |
0.1.6 | 162 | 12/7/2023 |
0.1.5 | 137 | 12/7/2023 |
0.1.4 | 140 | 12/7/2023 |
0.1.3 | 124 | 12/6/2023 |
0.1.2 | 139 | 12/6/2023 |
0.1.1 | 137 | 11/27/2023 |
0.1.0 | 130 | 11/26/2023 |