See More

A very common reason is a wrong site baseUrl configuration.\n

Current configured baseUrl = /api-ts/ \n

We suggest trying baseUrl = \n\n',document.body.prepend(n);var e=document.getElementById("__docusaurus-base-url-issue-banner-suggestion-container"),s=window.location.pathname,o="/"===s.substr(-1)?s:s+"/";e.innerHTML=o}document.addEventListener("DOMContentLoaded",(function(){void 0===window.docusaurus&&insertBanner()}))

Skip to main content

api-ts

Type- and runtime- safe TypeScript APIs

Client

Type-safe API requests with compile-time validation
Automatic response decoding with proper error handling
Seamless integration with Express and Superagent

API Specification

io-ts powered type definitions with runtime validation
OpenAPI specification generation from TypeScript
Shared contract between client and server

Server

End-to-end type safety from request to response
Middleware chaining with preserved type information
Express-compatible with enhanced error handling