type-guards icon indicating copy to clipboard operation
type-guards copied to clipboard

Add "not" helper to the FP module

Open lazarljubenovic opened this issue 4 years ago • 0 comments

I think it's not gonna be straightforward at all to cover all cases with overloads. But it should at least work nicely with most of the guards.

I'm not even sure how to manually write the type for "everything but not a number". Ideally, the else branch also needs to work, where it would be a number.

lazarljubenovic avatar Aug 18 '19 07:08 lazarljubenovic