1.0.5 • Published 7 months ago

@types/share-api-polyfill v1.0.5

Weekly downloads
118
License
MIT
Repository
github
Last release
7 months ago

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;
    language?: string | undefined;
}

declare global {
    interface Navigator {
        share(data?: ShareAPIPolyfillData, configuration?: ShareAPIPolyfillOptions): Promise<void>;
    }
}

Additional Details

  • Last updated: Tue, 06 Jul 2021 16:34:41 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Jan Vlnas.

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago