mirror of
https://github.com/Effect-TS/effect.git
synced 2026-12-03 03:25:40 +08:00
* simplify filters and remove middlewares * fix bundle/schema-async * rename
8 lines
298 B
TypeScript
8 lines
298 B
TypeScript
import * as Schema from "#dist/effect/Schema"
|
|
import * as SchemaCheck from "#dist/effect/SchemaCheck"
|
|
import * as SchemaValidator from "#dist/effect/SchemaValidator"
|
|
|
|
const schema = Schema.String.pipe(Schema.check(SchemaCheck.nonEmpty))
|
|
|
|
console.log(SchemaValidator.decodeUnknownSync(schema)("a"))
|