mirror of
https://github.com/Effect-TS/effect.git
synced 2026-12-02 03:15:52 +08:00
* add TemplateLiteral * test methods as compiler fragments * format * TupleType.parser * Union * typeAST + flip * remove SchemaAST.format from makeUnsafe * parser
7 lines
201 B
TypeScript
7 lines
201 B
TypeScript
import * as Schema from "#dist/effect/Schema"
|
|
import * as SchemaValidator from "#dist/effect/SchemaValidator"
|
|
|
|
const schema = Schema.String
|
|
|
|
console.log(SchemaValidator.decodeUnknownSync(schema)("a"))
|