You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The lib currently exports Guard with only one generic argument: (x: any) => x is T, but I found that in code I often need (x: V) => x is T. Instead of exporting Guard<T>, we should export Guard<T, V = any>. This is not a breaking change since the second one is optional.
The text was updated successfully, but these errors were encountered:
The lib currently exports
Guard
with only one generic argument:(x: any) => x is T
, but I found that in code I often need(x: V) => x is T
. Instead of exportingGuard<T>
, we should exportGuard<T, V = any>
. This is not a breaking change since the second one is optional.The text was updated successfully, but these errors were encountered: