1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import * as React from 'react';
|
9 |
|
10 | export as namespace CopyToClipboard;
|
11 |
|
12 | declare class CopyToClipboard extends React.PureComponent<CopyToClipboard.Props> {}
|
13 |
|
14 | declare namespace CopyToClipboard {
|
15 | class CopyToClipboard extends React.PureComponent<Props> {}
|
16 |
|
17 | interface Options {
|
18 | debug?: boolean | undefined;
|
19 | message?: string | undefined;
|
20 | format?: string | undefined;
|
21 | }
|
22 |
|
23 | interface Props {
|
24 | children?: React.ReactNode;
|
25 | text: string;
|
26 | onCopy?(text: string, result: boolean): void;
|
27 | options?: Options | undefined;
|
28 | }
|
29 | }
|
30 |
|
31 | export = CopyToClipboard;
|