1.2.1 • Published 2 years ago

jsontsschemer v1.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

jsontsschemer

jsontsschemer is a utility package for automatic type generation from .json files

Instalation

npm i jsontsschemer

Config

Create a schemer.json file in your project's root directory

{
  "jsonFiles": [
    "path/to/inputFile1.json", 
    "path/to/inputFile2.json",
    ...
    ],
  "outputFiles": [
    "path/to/outputFile1.ts", 
    "path/to/outputFile2.ts",
    ...
    ]
}

Usage

Add those two scripts to your package.json

scripts: {
  "generate-types": "jsontsschemeer gen",
  "watch-json": "jsontsschemer watch"
}

And use as needed

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.38

2 years ago

1.0.37

2 years ago

1.0.36

2 years ago

1.0.35

2 years ago

1.0.34

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.3111

2 years ago

1.0.311

2 years ago

1.0.31

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago