BugDomain: lib.d.tsHelp Wanted
Repository-Metriken
- Stars
- (48.455 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 6T 17h) (9 gemergte PRs in 30 T)
Beschreibung
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.