Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 601 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 601 Bytes

openapi-ts-gen npm version

A type definition generator from Open API 3.0 spec.

Install

$ yarn add openapi-ts-gen

How to use

$ openapi-ts-gen generate swagger.yml --namespace PetStore --dist types

CLI Options

Usage: openapi-ts-gen [options] [command]

Generate type definitions from swagger specs

Options:
  -V, --version              output the version number
  -h, --help                 output usage information

Commands:
  generate [options] <file>

License

MIT