Intility.JsonApiToolkit.TypeGen 0.1.1-next.2

This is a prerelease version of Intility.JsonApiToolkit.TypeGen.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet tool install --global Intility.JsonApiToolkit.TypeGen --version 0.1.1-next.2
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Intility.JsonApiToolkit.TypeGen --version 0.1.1-next.2
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Intility.JsonApiToolkit.TypeGen&version=0.1.1-next.2&prerelease
                    
nuke :add-package Intility.JsonApiToolkit.TypeGen --version 0.1.1-next.2
                    

JsonApiToolkit TypeGen

A .NET tool that generates TypeScript resource types from [JsonApiResource]-attributed C# models. It reuses the exact attribute/relationship classification that JsonApiToolkit uses at runtime, so the generated types cannot drift from what your API serializes on the wire.

Installation

dotnet tool install Intility.JsonApiToolkit.TypeGen --prerelease

Usage

Build your API project first, then point the tool at the compiled assembly:

jsonapi-typegen --assembly bin/Release/net10.0/MyApi.dll --out api-types.gen.ts

Pass --check to verify the output is up to date without writing it. This exits non-zero on drift, which makes it useful as a CI gate:

jsonapi-typegen --assembly bin/Release/net10.0/MyApi.dll --out api-types.gen.ts --check

How it works

Mark your resource models with [JsonApiResource] in the API project. The tool loads the assembly, finds the attributed types, and emits one TypeScript interface per resource, with attributes and relationships classified the same way JsonApiToolkit maps them.

The generated types pair with @intility/json-api-client for type-safe queries and hydration on the frontend.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.1.1-next.18 68 9/8/2026
0.1.1-next.14 70 9/7/2026
0.1.1-next.6 71 9/2/2026
0.1.1-next.2 52 9/2/2026
0.1.1-next.1 48 9/2/2026