0.0.11 • Published 3 years ago

@seinopsys-forks/openapi-to-typescript v0.0.11

Weekly downloads
8
License
MIT
Repository
github
Last release
3 years ago

@seinopsys-forks/openapi-to-typescript

NPM version Build Status

Generate TypeScript typings based on an OpenAPI 3 schema definition.

Install

Run npm install @seinopsys-forks/openapi-to-typescript or yarn add @seinopsys-forks/openapi-to-typescript

Usage in JavaScript

const { GenerateTypings } = require('@seinopsys-forks/openapi-to-typescript')

const generatedTypescriptCode = await GenerateTypings(openapiSchema)
fs.writeFileSync('out.ts', generatedTypescriptCode)

CLI Usage

yarn cli --help

For development

const { GenerateTypings } = require('./dist/index')

GenerateTypings(require('./fixtures/petstore.json')).then((generatedTypescriptCode: string) => {
  fs.writeFileSync('out.ts', generatedTypescriptCode)
})

Releasing new versions

Run npm run release, it will lint and build the project before running np to actually publish the new version. Follow the prompts to create the release.

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago