Creating a Reusable Type for Success Case in Effect

I feel like this should be easy but I can't find anything on the docs or searching. I want to create a reusable type where I just define the success case but let the error and context be inferred. How can I do this? The below code causes a type mismatch when I Effect.fail in my returned effect.

type MyFunc = (input: string) => Effect.Effect<{ result: boolean }> 
Was this page helpful?