@types/clipboard
Advanced tools
Comparing version 1.5.36 to 2.0.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for clipboard.js 1.5 | ||
// Type definitions for clipboard.js 2.0 | ||
// Project: https://github.com/zenorocha/clipboard.js | ||
@@ -6,6 +6,6 @@ // Definitions by: Andrei Kurosh <https://github.com/impworks> | ||
declare class Clipboard { | ||
declare class ClipboardJS { | ||
constructor( | ||
selector: string | Element | NodeListOf<Element>, | ||
options?: Clipboard.Options | ||
options?: ClipboardJS.Options | ||
); | ||
@@ -18,3 +18,3 @@ | ||
*/ | ||
on(type: "success" | "error", handler: (e: Clipboard.Event) => void): this; | ||
on(type: "success" | "error", handler: (e: ClipboardJS.Event) => void): this; | ||
on(type: string, handler: (...args: any[]) => void): this; | ||
@@ -33,3 +33,3 @@ | ||
declare namespace Clipboard { | ||
declare namespace ClipboardJS { | ||
interface Options { | ||
@@ -65,4 +65,4 @@ /** | ||
export = Clipboard; | ||
export = ClipboardJS; | ||
export as namespace Clipboard; | ||
export as namespace ClipboardJS; |
{ | ||
"name": "@types/clipboard", | ||
"version": "1.5.36", | ||
"version": "2.0.0", | ||
"description": "TypeScript definitions for clipboard.js", | ||
@@ -20,4 +20,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "7c705b8612ebb9ae4dcbd79747dbebd01537d441c089eae6ff5f0e559414921c", | ||
"typesPublisherContentHash": "c7f49c4b8f67eb32fcdacb4dd34263c6f129cce3edbabfb42ddbfe3115410b2f", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,7 +11,7 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 17 Jan 2018 22:17:28 GMT | ||
* Last updated: Sat, 03 Mar 2018 00:50:48 GMT | ||
* Dependencies: none | ||
* Global values: Clipboard | ||
* Global values: ClipboardJS | ||
# Credits | ||
These definitions were written by Andrei Kurosh <https://github.com/impworks>. |
Sorry, the diff of this file is not supported yet
4084