Effect CommunityEC
Effect Communityβ€’2y agoβ€’
10 replies
andremw

Unwrapping refined types

Hey all, how do I specify and use a refined type in a function?
Like type SendGreetings = (name: Schema.NonEmpty) => Effect.Effect<string, never, never>

I'm wondering how I would "unwrap" the Schema.NonEmpty value in the function to use it πŸ€”
The reason is I want to have refined types passed around from the system's edges into the application instead of primitives.
Was this page helpful?