npm.io
1.0.5 • Published 2 years ago

@types/share-api-polyfill

Licence
MIT
Version
1.0.5
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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 1536 GMT
  • Dependencies: none

Credits

These definitions were written by Jan Vlnas.