Troubleshooting TypeScript Integration with Effect Library's Exit Type
Hello! I'm new to effect, i'm trying to integrate the library in some critical parts of the application, i'm trying to use
I'm getting:
for:
If i use the
Exit to return error as value like rust's Result type, but i cannot seem to be able to use the type to define the return value of a function:I'm getting:
for:
If i use the
import type it does work but then i cannot do Exit.fail etc... how should i make it work?