mirror of
https://github.com/Effect-TS/effect.git
synced 2026-12-01 03:05:36 +08:00
10 lines
306 B
TypeScript
10 lines
306 B
TypeScript
import * as Effect from "#dist/effect/Effect"
|
|
import * as Check from "#dist/effect/schema/Check"
|
|
import * as Schema from "#dist/effect/schema/Schema"
|
|
|
|
const schema = Schema.String.pipe(Schema.check(Check.nonEmpty()))
|
|
|
|
Schema.decodeUnknownEffect(schema)({ a: "a", b: 1, c: ["c"] }).pipe(
|
|
Effect.runFork
|
|
)
|