@fasciajs/effect
v0.3.0
Published
An effect Schema, read as a Node.
Maintainers
Readme
@fasciajs/effect
An effect 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/effecteffect publishes a plain tagged union, so the dispatch is a switch and a node effect adds is a compile error. A transformation carries both directions, so effect produces a codec as a matter of course.
import { effectSource } from '@fasciajs/effect'
import { describe } from '@fasciajs/core'
describe(Schema.Struct({ id: Schema.String }).ast, effectSource, 'input')See the root README for the whole shape, what it refuses, and the numbers.
MIT.
