Remove If* types in favour of a single If type#1135
Conversation
3ddc1ab to
56fa97a
Compare
👍 |
|
I think it would be nice to just keep alias to the existing type IfAny<T, ...> = If<IsAny<T>, ...>; |
|
The deprecated comment could say it will be removed in the next major version. |
Yeah, I too thought so, will update the PR. |
e618d23 to
336c260
Compare
| @deprecated This type will be removed in the next major version. Use the {@link If} type instead. | ||
| @see {@link IsAny} |
There was a problem hiding this comment.
Note: The {@link If} link is still not clickable, because If is not imported in this file.
And this happens at many places (like the @see {@link IsAny} link), I'll look into this separately.

Completes point no. 16 of #450.
Removes all
If*types (IfAny,IfNever,IfUnknown,IfNull&IfEmptyObject) in favour of a singleIftype as suggested here.NOTE:
IfNotAnyOrNevertype because I feel it's still a nice abstraction as it handles two checks, and the defaults ofanyandneverare mostly useful.