This package has been deprecated

Author message:

WARNING: This project has been renamed to runtyping. Install using runtyping instead.

runtypes-generator
TypeScript icon, indicating that this package has built-in type declarations

2.3.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i runtypes-generator

Weekly Downloads

18

Version

2.3.1

License

MIT

Unpacked Size

101 kB

Total Files

133

Last publish

Collaborators

  • johngeorgewright