Skip to main content

OpenAPI to TypeScript

v1.0.2

Generate TypeScript interface definitions from OpenAPI 3.0 JSON/YAML specifications.

Generates TypeScript interface definitions from OpenAPI 3.0 JSON or YAML specifications — maps schemas, request bodies, and response types to typed TS interfaces for use with fetch wrappers.

How to use
  • Paste an OpenAPI 3.0 JSON or YAML spec into the input.
  • The generated TypeScript types correspond to schema components and endpoint payloads.
  • Copy the types into a types.ts file in your project.