BugDomain: lib.d.tsHelp Wanted
Description
Bug Report
navigator.share is undefined is many browsers, yet TypeScript reports it as "the function is always defined"
๐ Search Terms
navigator.share share
๐ Version & Regression Information
Version 4.1.5 & Nightly
โฏ Playground Link
๐ป Code
if (navigator.share) {
console.log('The native share feature is implemented');
} else {
console.log('The native share feature is not implemented');
}
๐ Actual behavior
TypeScript reports it as "the function is always defined"
๐ Expected behavior
If should report navigator.share as maybe being present.