Skip to content

Generate source-code types from a swagger-specification file

License

Notifications You must be signed in to change notification settings

MatthiasMargot/typegen

Repository files navigation

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.

About

Generate source-code types from a swagger-specification file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published