1.0.1 • Published 6 months ago

@onetyped/typebox v1.0.1

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

@onetyped/typebox

onetyped integration for TypeBox

Warning TypeBox is severely limited by its requirement to support JSON schema. This package will likewise not work as expected. It probably never will.

Usage

import { number, object, string } from '@onetyped/core'
import { toTypeBoxString } from '@onetyped/typebox'

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

// print TypeBox representation of schema
console.log(toTypeBoxString(schema))

Output:

Type.Object({
	name: Type.String(),
	age: Type.Number(),
})
1.0.1

9 months ago

1.0.0

9 months ago

0.0.9

10 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago