1.2.1 • Published 1 year ago

jsontsschemer v1.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year 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

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.38

1 year ago

1.0.37

1 year ago

1.0.36

1 year ago

1.0.35

1 year ago

1.0.34

1 year ago

1.0.33

1 year ago

1.0.32

1 year ago

1.0.3111

1 year ago

1.0.311

1 year ago

1.0.31

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago