OpenAPI to TypeScript Types Generator
Turn your OpenAPI or Swagger schemas into TypeScript interfaces with JSDoc — copy or download api-types.ts.
Help shape OpenAPI to TypeScript Types Generator
The bug you just noticed will fade in 3 minutes. The feature idea will vanish after your next tab switch. Crazy peps don't suffer silently.
Frequently Asked Questions
Every entry in components.schemas (OpenAPI 3) or definitions (Swagger 2), with $refs turned into type names.
oneOf and anyOf become union types; allOf becomes an intersection.
It generates types only. Pair them with fetch, or open endpoints in the API client to generate request code.
No. Parsing and generation happen entirely in your browser.