From 4b087f54e5e8f4c57eee0d282b5e84d670d8eca8 Mon Sep 17 00:00:00 2001 From: Derek Cicerone Date: Wed, 2 Oct 2013 22:02:30 -0400 Subject: [PATCH] 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 :) --- zeroclipboard/zeroclipboard.d.ts | 34 ++++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/zeroclipboard/zeroclipboard.d.ts b/zeroclipboard/zeroclipboard.d.ts index c059d47eb..f95048700 100644 --- a/zeroclipboard/zeroclipboard.d.ts +++ b/zeroclipboard/zeroclipboard.d.ts @@ -6,31 +6,31 @@ declare class ZeroClipboard { constructor(elements?: any, options?: ZeroClipboardOptions); - setCurrent(element: any); - setText(newText: string); - setTitle(newTitle: string); - setSize(width: number, height: number); - setHandCursor(enabled: boolean); + 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(); + resetBridge(): void; ready: boolean; - reposition(); - on(eventName, func); - addEventListener(eventName: string, func); - off(eventName: string, func); - removeEventListener(eventName: string, func); - receiveEvent(eventName: string, args); - glue(elements: any); - unglue(elements: any); - static setDefaults(options: ZeroClipboardOptions); - static destroy(); + 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, func); + static dispatch(eventName: string, args: any): void; } interface ZeroClipboardOptions {