condition
doesn't work with type guards
#166
Labels
enhancement
Improvement in existing feature
Milestone
Hey there!
I've discovered that
condition
'sif
doesn't propagate type guarded types toelse
andthen
. When passing a union type insource
return type and trying to type-guard it inif
,else
still hasUnit<void | NoInfer<Foo | Bar>
Reproducible Example
Expected Result
else
andthen
properties are type guarded byif
, similar to effector'sguard
Environment:
Please let me know if you need more information regarding this. Thanks!
The text was updated successfully, but these errors were encountered: