0.0.8-rc.15 • Published 3 months ago

@bunnio/type-guardian v0.0.8-rc.15

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
3 months ago

type-guardian

A simple type and interface translator for openapi to interface, and zod definitions

CONSIDER AS whatever comes before pre alpha VERSION

It is only intended as CLI tool, however it does contain a set of zod tools, you can import them via

import {zodGTRefine, zodLTRefine, zodXorRefine} from "@bunnio/type-guardian/dist/custom-zod/types"

CLI usage

!! FOR CLI INSTALL IT GLOBALLY !!

npm install -g @bunnio@type-guardian

every file should be transformed into a folder with multiple result options

tg-full

use as:

tg-full -i input/openapifile.yaml -o output/folder

This will generate the full stack which currently is a zod rules, typescript interface, and a direct lookup for the yaml source

tg-int

use as:

tg-int -i input/openapifile.yaml -o output/folder

This will generate the typescript interface

tg-zod

use as:

tg-zod -i input/openapifile.yaml -o output/folder

This will generate the zod rules

0.0.8-rc.15

3 months ago

0.0.8-rc.13

3 months ago

0.0.8-rc.14

3 months ago

0.0.8-rc.12

3 months ago

0.0.8-rc.11

3 months ago

0.0.8-rc.10

3 months ago

0.0.8-rc.7

3 months ago

0.0.8-rc.8

3 months ago

0.0.8-rc.9

3 months ago

0.0.8-rc.4

3 months ago

0.0.8-rc.5

3 months ago

0.0.8-rc.6

3 months ago

0.0.3

3 months ago

0.0.2

3 months ago

0.0.8-rc.0

3 months ago

0.0.5

3 months ago

0.0.8-rc.1

3 months ago

0.0.4

3 months ago

0.0.8-rc.2

3 months ago

0.0.7

3 months ago

0.0.8-rc.3

3 months ago

0.0.6

3 months ago

0.0.1

3 months ago