Neanderthal Pudding Mix

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

    1.0.3 • 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

    // Type definitions for share-api-polyfill 1.0
    // Project: https://github.com/on2-dev/share-api-polyfill#readme
    // Definitions by: Jan Vlnas <https://github.com/jnv>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // Minimum TypeScript Version: 3.9
    
    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, 23 Aug 2022 11:02:33 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by Jan Vlnas.

    Keywords

    none

    Install

    npm i @types/share-api-polyfill

    DownloadsWeekly Downloads

    399

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    4.71 kB

    Total Files

    5

    Last publish

    Collaborators

    • types