Files
Derek Cicerone 4b087f54e5 Fix noImplicitAny in zeroclipboard.d.ts
* checked all of these against the source code, they should all be correct (no assumptions about return types this time :)
2013-10-02 22:02:30 -04:00

42 lines
1.5 KiB
TypeScript

// Type definitions for ZeroClipboard
// Project: https://github.com/jonrohan/ZeroClipboard
// Definitions by: Eric J. Smith <https://github.com/ejsmith>
// Updated by: Blake Niemyjski <https://github.com/niemyjski>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare class ZeroClipboard {
constructor(elements?: any, options?: ZeroClipboardOptions);
setCurrent(element: any): void;
setText(newText: string): void;
setTitle(newTitle: string): void;
setSize(width: number, height: number): void;
setHandCursor(enabled: boolean): void;
version: string;
moviePath: string;
trustedDomains: any;
text: string;
hoverClass: string;
activeClass: string;
resetBridge(): void;
ready: boolean;
reposition(): void; // returns false in some scenarios, but never returns true
on(eventName: string, func: Function): void;
addEventListener(eventName: string, func: Function): void;
off(eventName: string, func: Function): void;
removeEventListener(eventName: string, func: Function): void;
receiveEvent(eventName: string, args: any): void;
glue(elements: any): void;
unglue(elements: any): void;
static setDefaults(options: ZeroClipboardOptions): void;
static destroy(): void;
static detectFlashSupport(): boolean;
static dispatch(eventName: string, args: any): void;
}
interface ZeroClipboardOptions {
moviePath?: string;
trustedDomains?: any;
hoverClass?: string;
activeClass?: string;
}