mirror of
https://github.com/Effect-TS/effect.git
synced 2026-12-02 03:15:52 +08:00
* Refactor schema annotation method to use pipe syntax for consistency across schema operations * renaming * rename SchemaValidator to SchemaParser * move make from schemas to SchemaParser * fix bundle imports * rename serialization annotation * simplify makeClass impl
7 lines
192 B
TypeScript
7 lines
192 B
TypeScript
import * as Schema from "#dist/effect/Schema"
|
|
import * as SchemaParser from "#dist/effect/SchemaParser"
|
|
|
|
const schema = Schema.String
|
|
|
|
console.log(SchemaParser.decodeUnknownSync(schema)("a"))
|