Installation
npm install --save @types/share-api-polyfill
Summary
This package contains type definitions for share-api-polyfill (https://github.com/on2-dev/share-api-polyfill#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/share-api-polyfill.
index.d.ts
export interface ShareAPIPolyfillData extends ShareData {
fbId?: string | undefined;
hashtags?: string | undefined;
}
export interface ShareAPIPolyfillOptions {
copy?: boolean | undefined;
email?: boolean | undefined;
print?: boolean | undefined;
sms?: boolean | undefined;
messenger?: boolean | undefined;
facebook?: boolean | undefined;
whatsapp?: boolean | undefined;
twitter?: boolean | undefined;
linkedin?: boolean | undefined;
telegram?: boolean | undefined;
skype?: boolean | undefined;
pinterest?: boolean | undefined;
language?: string | undefined;
}
declare global {
interface Navigator {
share(data?: ShareAPIPolyfillData, configuration?: ShareAPIPolyfillOptions): Promise<void>;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Jan Vlnas.