1.0.6 • Published 7 months ago

valibot-ts-codegen v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Valibot TS codegen

Tool for autogenerate simple schema for valibot

Getting started

First you need to install

yarn add valibot-ts-codegen

After installing add command to package.json

{
  // ...
  "scripts": {
    // ...
    "gen-valibot-schemas": "vtc --path ./**/*.ts --result ./valibot-schemas.ts"
    // ...
  },
  // ...
}

Supported types

  • string
  • number
  • bigint
  • boolean
  • null
  • symbol
  • undefined
  • array
  • object
  • date
  • map
  • record
  • set
  • tuple
  • union
  • unknown
  • void
  • never
  • any

Not supported

  • multiline union
    type NotSupportedUnion = {
      u: string 
        | number
        | boolean;
    }
  • enum
  • intersection
1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago