1.0.1 • Published 2 years ago

@onetyped/zod v1.0.1

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

@onetyped/zod

onetyped integration for Zod

Usage

import { number, object, string } from '@onetyped/core'
import { toZodString } from '@onetyped/zod'

const schema = object({
	name: string(),
	age: number(),
})

// print Zod representation of schema
console.log(toZodString(schema))

Output:

z.object({
	name: z.string(),
	age: z.number(),
})
1.0.1

2 years ago

1.0.0

2 years ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.5

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago