@types/share-api-polyfill
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/share-api-polyfill

      Weekly Downloads

      1,027

      Version

      1.0.5

      License

      MIT

      Unpacked Size

      4.15 kB

      Total Files

      5

      Last publish

      Collaborators

      • types