0.2.1
Pre-release
Pre-release
You can now return an empty ok
or err
:
function someWork(): Result<void, void> {
// ... stuff
if (someError) {
return err()
}
// ... more stuff
return ok()
}
trys
and tryp
will now also infer the void type correctly if the given function and promise returns void