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>
type SendGreetings = (name: Schema.NonEmpty) => Effect.Effect<string, never, never>
I'm wondering how I would "unwrap" the
Schema.NonEmpty
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.