@types/react-copy-to-clipboard
Advanced tools
Comparing version 4.3.0 to 5.0.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for react-copy-to-clipboard 4.3 | ||
// Type definitions for react-copy-to-clipboard 5.0 | ||
// Project: https://github.com/nkbt/react-copy-to-clipboard | ||
@@ -7,26 +7,25 @@ // Definitions by: Meno Abels <https://github.com/mabels> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.8 | ||
import * as React from "react"; | ||
import * as React from 'react'; | ||
export as namespace CopyToClipboard; | ||
export = CopyToClipboard; | ||
declare class CopyToClipboard extends React.PureComponent<CopyToClipboard.Props> {} | ||
declare namespace CopyToClipboard { | ||
interface Options { | ||
debug?: boolean; | ||
format?: "text/html" | "text/plain"; | ||
message?: string; | ||
} | ||
class CopyToClipboard extends React.PureComponent<Props> {} | ||
interface Props { | ||
children: React.ReactNode; | ||
text: string; | ||
onCopy?(text: string, result: boolean): void; | ||
options?: Options; | ||
} | ||
interface Options { | ||
debug?: boolean; | ||
message?: string; | ||
format?: string; // MIME type | ||
} | ||
interface Props { | ||
text: string; | ||
onCopy?(text: string, result: boolean): void; | ||
options?: Options; | ||
} | ||
} | ||
declare class CopyToClipboard extends React.Component<CopyToClipboard.Props> { | ||
} | ||
export = CopyToClipboard; |
{ | ||
"name": "@types/react-copy-to-clipboard", | ||
"version": "4.3.0", | ||
"version": "5.0.0", | ||
"description": "TypeScript definitions for react-copy-to-clipboard", | ||
@@ -24,3 +24,3 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -35,4 +35,4 @@ "type": "git", | ||
}, | ||
"typesPublisherContentHash": "19790b1a6e6ace9df9b1e88090a78da164478ce0f0caca0783d47a759338dbf2", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "0786caa82fa2ead6d9e975d8e85b65a6785855f76ba285cf01ea14205762054e", | ||
"typeScriptVersion": "3.3" | ||
} |
@@ -8,10 +8,10 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-copy-to-clipboard | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-copy-to-clipboard. | ||
Additional Details | ||
* Last updated: Fri, 27 Sep 2019 16:39:03 GMT | ||
* Dependencies: @types/react | ||
* Global values: CopyToClipboard | ||
### Additional Details | ||
* Last updated: Mon, 07 Dec 2020 19:30:55 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
* Global values: `CopyToClipboard` | ||
# Credits | ||
These definitions were written by Meno Abels <https://github.com/mabels>, Bernabe <https://github.com/BernabeFelix>, and Ward Delabastita <https://github.com/wdlb>. | ||
These definitions were written by [Meno Abels](https://github.com/mabels), [Bernabe](https://github.com/BernabeFelix), and [Ward Delabastita](https://github.com/wdlb). |
Sorry, the diff of this file is not supported yet
3801
23