A type definition generator from Open API 3.0 spec.
This packages generates TypeScript interface from.
- Schema components
- Error object (for each status codes)
- Request bodies
- Query Parameters
- Response objects
- Path Parameters
$ yarn add @squelette/ts-gen
$ ts-gen generate swagger.yml --dist types
Usage: 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>
Options:
-d, --dist <dist> Output directory
-h, --help output usage information
See example.
MIT