Effect CommunityEC
Effect Community3y ago
2 replies
Deleted User

Decoding from unknown

when creating a schema using S.struct it returns a S.Schema<From, To> where the From and To are the same. This seems strange to me, as normally I want to have From be unknown, it makes calling decode impossible without a cast. What am I missing here? Is there a simple way to convert to S.Schema<unkown, To> without maintaining a separate type definition?
Was this page helpful?