@fasciajs/arktype
v0.3.0
Published
An arktype schema, read as a Node.
Maintainers
Readme
@fasciajs/arktype
An arktype schema, read as a Node.
Part of fascia. A schema is described once and written as anything: four validators and five targets, and neither side knows the other exists.
npm install @fasciajs/arktypeRead through arktype's own machinery rather than through the shape of its output: hasKind narrows
to the node type for a kind, so a field arktype moves is a compile error.
import { arktypeSource } from '@fasciajs/arktype'
import { describe } from '@fasciajs/core'
describe(type({ id: 'string' }), arktypeSource, 'input')See the root README for the whole shape, what it refuses, and the numbers.
MIT.
