Effect CommunityEC
Effect Community2y ago
2 replies
Fabian

Decoding Without Encoding in Schema Transformations: Is It Possible?

Hello, do I always need an encode in my schema transformations? I want to decode a record like {a: string} into a string and don't really need the to encode it back into the record.

Seems like I have to add a lot of encode: () => ({} as MyStruct) in order for it to behave like this, am I misusing the lib? Coming from io-ts/Decoder
Was this page helpful?