Specifying and Using a Refined Type in a Function

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

I'm wondering how I would "unwrap" the NonEmpty value in the function to use it 🤔
Was this page helpful?