Effect CommunityEC
Effect Community3y ago
16 replies
Jérôme MARTIN

Building Option.Some instead of Option.Option

I was wondering if there existed a way to build an Option.some of type Option.Some and not Option.Option? Most of the time, when I write: const o = Option.some(1) I want o to be of type Option.Option. But, on some rare occasions, I need it to be Option.Some. So far, I use: as Option.Some<X> but was wondering if there were another way.
Was this page helpful?