Overview of openapi-typescript ecosystem
mainThe openapi-typescript project is a suite of tools designed to provide end-to-end type safety for APIs defined by OpenAPI schemas. The ecosystem consists of three primary packages:
openapi-typescript: A type generator that converts OpenAPI schemas into statically-analyzable, runtime-free TypeScript types. It supports complex schemas, preserves original capitalization, and runs in any Node.js environment using either local files or remote URLs.openapi-fetch: A lightweight, performant wrapper around the native Fetch API. It provides strict type inference from OpenAPI schemas with minimal generic boilerplate and reduces common tasks likeawait res.json().openapi-react-query: A wrapper for@tanstack/react-querythat provides strict type inference from OpenAPI schemas while reducing boilerplate and respecting the original TanStack APIs.