mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-28 18:40:33 +00:00
29 lines
719 B
TypeScript
29 lines
719 B
TypeScript
// Type definitions for react-copy-to-clipboard 4.2
|
|
// Project: https://github.com/nkbt/react-copy-to-clipboard
|
|
// Definitions by: Meno Abels <https://github.com/mabels>
|
|
// Bernabe <https://github.com/BernabeFelix>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
import * as React from "react";
|
|
|
|
export as namespace CopyToClipboard;
|
|
|
|
export = CopyToClipboard;
|
|
|
|
declare namespace CopyToClipboard {
|
|
interface Options {
|
|
debug: boolean;
|
|
message: string;
|
|
}
|
|
|
|
interface Props {
|
|
text: string;
|
|
onCopy?(a: string, b: boolean): void;
|
|
options?: Options;
|
|
}
|
|
}
|
|
|
|
declare class CopyToClipboard extends React.Component<CopyToClipboard.Props> {
|
|
}
|