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
navigator.share should be an optional attribute of Navigator because a significant number of browsers still don't support it (CanIUse), but it seems to be defined as always defined on the navigator interface. So, the following code:
//...<Tooltiptitle={navigator.share ? "Share" : "Your device doesn't support sharing"}>
//...
which is perfectly fine raises the following error:
This condition will always return true since the function is always defined. Did you mean to call it instead? TS2774
The text was updated successfully, but these errors were encountered:
navigator.share
should be an optional attribute ofNavigator
because a significant number of browsers still don't support it (CanIUse), but it seems to be defined as always defined on the navigator interface. So, the following code:which is perfectly fine raises the following error:
The text was updated successfully, but these errors were encountered: