1.0.0 • Published 1 year ago

type-annotation-to-json-schema v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

type-annotation-to-json-schema

CircleCI Coverage Status semantic-release Commitizen friendly npm version

Generates JSON schemas from Flow and TypeScript type annotations.

CLI

type-annotation-to-json-schema <file> <identifier>

convert a type to JSON Schema

Positionals:
  file
  identifier

Options:
  --version       Show version number                                  [boolean]
  --help          Show help                                            [boolean]
  --defaultExact  whether to treat ambiguously exact objects as exact or inexact
                                                                       [boolean]