@fasciajs/atd
v0.3.0
Published
A term, written as Arri Type Definition.
Maintainers
Readme
@fasciajs/atd
A term and a set of procedures, written for arri.
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/atdarri names a procedure's two ends rather than holding them, so every position is named and a schema standing at both becomes two definitions where its sides differ. arri's own generators write TypeScript, Dart and Rust clients from what this produces.
import { spellAtd, spellAtdApp } from '@fasciajs/atd'
spellAtd(term) // one schema
spellAtdApp(procedures, zodSource, naming, info) // a whole app definitionSee the root README for the whole shape, what it refuses, and the numbers.
MIT.
