436 B
436 B
effect
| effect |
|---|
| patch |
Simplify and align the default-value APIs.
Schema.withConstructorDefault now accepts an Effect<T> instead of (o: Option<undefined>) => Option<T> | Effect<Option<T>>.
Schema.withDecodingDefault / Schema.withDecodingDefaultKey now accept an Effect<T> instead of () => T, enabling effectful defaults.
SchemaGetter.withDefault follows the same change, accepting Effect<T> instead of () => T.