Noodle Printing Machine

    @types/react-copy-to-clipboard
    TypeScript icon, indicating that this package has built-in type declarations

    5.0.2 • Public • Published

    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: Fri, 15 Oct 2021 19:01:23 GMT
    • Dependencies: @types/react
    • Global values: CopyToClipboard

    Credits

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

    Keywords

    none

    Install

    npm i @types/react-copy-to-clipboard

    DownloadsWeekly Downloads

    279,217

    Version

    5.0.2

    License

    MIT

    Unpacked Size

    5.12 kB

    Total Files

    4

    Last publish

    Collaborators

    • types