2.3.1 • Published 3 years ago

runtypes-generator v2.3.1

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

runtypes-generator

Generate runtypes from static types & JSON schema.

Instructions

Install

npm install runtypes
npm install -D runtypes-generator

Configure

# runtypes.gen.yml

# This config represents a list of files to create.
- targetFile: src/runtypes.ts # The file to create
  sourceTypes:
    - file: src/types.ts # The file where your type lives
      type: Foo # The type you want to convert to a runtype

    - file: json/my-json-schema.json # You can even use JSON schema files!!
      type: ExampleType

Run

npx rungen
2.3.0

3 years ago

2.3.1

3 years ago

2.2.0

3 years ago

2.1.3

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.0.2

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.0.2

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.0

3 years ago