Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 849 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 849 Bytes

Swagger Typegen

codecov

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.