John Reilly
Read post

Full-stack static typing with OpenAPI TypeScript and Microsoft.AspNetCore.OpenApi

Learn how to achieve full-stack static typing by generating TypeScript clients from .NET Web APIs using Microsoft.AspNetCore.OpenApi and openapi-ts. The tutorial covers creating a .NET API with OpenAPI 3.1 support, generating TypeScript type definitions and clients, and consuming the API in a React application. Includes solutions for handling number type issues in the generated OpenAPI spec and demonstrates how to maintain type safety from backend C# models through to frontend TypeScript code.

    #react#typescript#.net#openapi#aspnetcore
Jan 02•8m read time•From johnnyreilly.com
Post cover image
Table of contents
What will we do? ​Create an API ​Create our client ​Generate our OpenAPI client ​Adjusting Microsoft.AspNetCore.OpenApi surfaced types ​Consume our generated API client ​Summary ​
6.9K Impressions
John Reilly's image
John Reilly

Johnny Reilly is a software engineer, blogger, and technology enthusiast known for his insights into...

23 Followers

•

278 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard