What version of Effect is running?
effect@3.19.19
What steps can reproduce the bug?
Cause.isDie does not narrow the type
if (Cause.isDie(cause)) {
console.log(cause.defect) // --> error
}
Errors:
Property 'defect' does not exist on type 'Cause<never>'.
Property 'defect' does not exist on type 'Empty'
Workaround
if (cause._tag === 'Die') {
console.log(cause.defect) // --> works
}
What is the expected behavior?
Type narrowing
What do you see instead?
Property 'defect' does not exist on type 'Cause'.
Property 'defect' does not exist on type 'Empty'
Additional information
effect@3.19.19
What version of Effect is running?
effect@3.19.19
What steps can reproduce the bug?
Cause.isDiedoes not narrow the typeErrors:
Workaround
What is the expected behavior?
Type narrowing
What do you see instead?
Property 'defect' does not exist on type 'Cause'.
Property 'defect' does not exist on type 'Empty'
Additional information
effect@3.19.19