Unwrapping refined types
Hey all, how do I specify and use a refined type in a function?
Like
I'm wondering how I would "unwrap" the
The reason is I want to have refined types passed around from the system's edges into the application instead of primitives.
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.
