-
-
Notifications
You must be signed in to change notification settings - Fork 557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IfType type guards #788
Comments
PR welcome for types starting with |
I'm starting to question whether it was the correct choice to add // @ikelax |
Sorry for the late response. I also think that the |
I'm 👍 on this, and eg. the type IfAny<T, TypeIfAny = true, TypeIfNotAny = false> Though internally it uses Lines 22 to 24 in 3d473d1
I would deprecate the |
Why not the other way around? |
No strong opinion, but |
The readme mentions that there should be a corresponding
IfType
guard for everyIsType
check.I'm only seeing a few
IfType
guards in the package (IfNever
,IfAny
, andIfUnknown
).Potential fixes (that I can think of at the moment):
IfType
guardsUpvote & Fund
The text was updated successfully, but these errors were encountered: