The window.navigator Navigator interface has a new property share https://developers.google.com/web/updates/2016/09/navigator-share.
Would it be possible to add this to the DOM lib typings?
I am currently shimming the type locally:
type ShareOptions = { title: string; text: string; url: string };
type NavigatorShare = (options: ShareOptions) => Promise<{}>;
interface Navigator {
share?: NavigatorShare;
}
The
window.navigatorNavigatorinterface has a new propertysharehttps://developers.google.com/web/updates/2016/09/navigator-share.Would it be possible to add this to the DOM lib typings?
I am currently shimming the type locally: