Effect CommunityEC
Effect Community3y ago
9 replies
danielo515

Lifting Object Values to Option while Preserving Typed Shape

Is there any function in fp-ts capable of lifting all values of an object to an option and keep the typed shape? The cherry on top will be to be able to ignore any already option. Something like
({ a: string, b: Option<number> }) => { a: Option<string>,  b: Option<number>}
Was this page helpful?