@squelette/ts-gen
v1.1.14
Published
A type definition generator from Open API 3.0 spec.
Downloads
5
Maintainers
Readme
@squelette/ts-gen
A type definition generator from Open API 3.0 spec.
About package
This packages generates TypeScript interface from.
- Schema components
- Error object (for each status codes)
- Request bodies
- Query Parameters
- Response objects
- Path Parameters
Install
$ yarn add @squelette/ts-gen
How to use
$ ts-gen generate swagger.yml --dist types
CLI Options
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
Example
See example.
License
MIT