Lightlines
By softaworks

openapi-to-typescript

softaworks3.9k installs

Turn API specs into TypeScript types and guards.

What it does

Generates TypeScript interfaces, endpoint request and response types, and runtime type guards from OpenAPI 3.0 specifications.

When to use it

Use when generating TypeScript types or API interfaces from an OpenAPI specification.

How to use it

Give it an OpenAPI 3.0 JSON or YAML file; it generates TypeScript interfaces and type guards and saves them to the chosen project path, defaulting to types/api.ts.

What you provide

  • the OpenAPI file path
  • Your files

Latest review

What you need · 0

No setup requirements listed.


Access · 0

No additional actions listed.