Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 855 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 855 Bytes

#dtsgenerator

NPM version Build Status Coverage Status

TypeScript d.ts file generator for JSON Schema file

Install

npm install -g dtsgenerator

Usage

$ dtsgen --help

  Usage: dtsgen [options] <file ... | file patterns using node-glob>

  Options:

    -h, --help        output usage information
    -V, --version     output the version number
    -o, --out [file]  output d.ts filename

Example

dtsgen --out types.d.ts schema1.json schema2.json
dtsgen --out types.d.ts schema/**/*.schema.json