Merge commit '36c66dd290d3ce6eb1ccd310d0c658d4a32bb8eb' as 'repos/effect'
This commit is contained in:
11
repos/effect/.changeset/fix-1917.md
Normal file
11
repos/effect/.changeset/fix-1917.md
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
"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`.
|
||||
Reference in New Issue
Block a user