Swagger Typegen
Install
Run yarn
to install dependencies.
Global npm install
Typegen is globally installable as an npm cli tool.
To install it run npm link
from the root of the project.
How to generate the type file
typegen example/input.json -o example/output.ts
Parameters
- input (required) - The path to swagger file in JSON format
- -o, --output [filename] (optional) - the path to the output file. By skipping this param, the output is returned in the terminal.