Effect CommunityEC
Effect Community16mo ago
3 replies
spaethnl

Preserving Identifier Information in `optionalWith` vs `withConstructorDefault`

S.optionalWith seems to lose identifier information when using S.typeSchema, but S.withConstructorDefault manages to preserve it. Is there any way to get optionalWith to have this behavior?

Notice that C becomes Struct (Type side) in the following playground: https://effect.website/play#c6044388ab61
Was this page helpful?