JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 579836
  • Score
    100M100P100Q184486F
  • License MIT

TypeScript definitions for react-copy-to-clipboard

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/react-copy-to-clipboard) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Installation

    npm install --save @types/react-copy-to-clipboard

    Summary

    This package contains type definitions for react-copy-to-clipboard (https://github.com/nkbt/react-copy-to-clipboard).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-copy-to-clipboard.

    index.d.ts

    // Type definitions for react-copy-to-clipboard 5.0
    // Project: https://github.com/nkbt/react-copy-to-clipboard
    // Definitions by: Meno Abels <https://github.com/mabels>
    //                 Bernabe <https://github.com/BernabeFelix>
    //                 Ward Delabastita <https://github.com/wdlb>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    import * as React from "react";
    
    export as namespace CopyToClipboard;
    
    declare class CopyToClipboard extends React.PureComponent<CopyToClipboard.Props> {}
    
    declare namespace CopyToClipboard {
        class CopyToClipboard extends React.PureComponent<Props> {}
    
        interface Options {
            debug?: boolean | undefined;
            message?: string | undefined;
            format?: string | undefined; // MIME type
        }
    
        interface Props {
            children?: React.ReactNode;
            text: string;
            onCopy?(text: string, result: boolean): void;
            options?: Options | undefined;
        }
    }
    
    export = CopyToClipboard;
    

    Additional Details

    • Last updated: Wed, 27 Sep 2023 07:12:04 GMT
    • Dependencies: @types/react
    • Global values: CopyToClipboard

    Credits

    These definitions were written by Meno Abels, Bernabe, and Ward Delabastita.