From 040d43ad886ee669fc770de2f56dc0e3faafb248 Mon Sep 17 00:00:00 2001 From: Karlkim Suwanmongkol Date: Sat, 22 Dec 2012 01:06:45 -0600 Subject: [PATCH] Fix [key: any] issue in raphael-2.1.d.ts This is similar to old jquery definition issue mentioned in http://stackoverflow.com/questions/13630578/why-does-the-jquery-d-ts-typescript-definition-file-throw-a-compile-error We should update Raphael definition as well. --- raphael/raphael-2.1.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/raphael/raphael-2.1.d.ts b/raphael/raphael-2.1.d.ts index 9d3c709b6b..88a545e3be 100644 --- a/raphael/raphael-2.1.d.ts +++ b/raphael/raphael-2.1.d.ts @@ -23,12 +23,12 @@ interface RaphaelFont { } interface RaphaelElement { - animate(params: { [key: any]: any; }, ms: number, easing?: string, callback?: Function): RaphaelElement; + animate(params: { [key: string]: any; }, ms: number, easing?: string, callback?: Function): RaphaelElement; animate(animation: RaphaelAnimation): RaphaelElement; animateWith(el: RaphaelElement, anim: RaphaelAnimation, params: any, ms: number, easing?: string, callback?: Function): RaphaelElement; animateWith(el: RaphaelElement, anim: RaphaelAnimation, animation: RaphaelAnimation): RaphaelElement; attr(attrName: string, value: any): RaphaelElement; - attr(params: { [key: any]: any; }): RaphaelElement; + attr(params: { [key: string]: any; }): RaphaelElement; attr(attrName: string): any; attr(attrNames: string[]): any[]; click(handler: Function): RaphaelElement; @@ -110,12 +110,12 @@ interface RraphaelSet { length: number; [key: number]: RaphaelElement; - animate(params: { [key: any]: any; }, ms: number, easing?: string, callback?: Function): RaphaelElement; + animate(params: { [key: string]: any; }, ms: number, easing?: string, callback?: Function): RaphaelElement; animate(animation: RaphaelAnimation): RaphaelElement; animateWith(el: RaphaelElement, anim: RaphaelAnimation, params: any, ms: number, easing?: string, callback?: Function): RaphaelElement; animateWith(el: RaphaelElement, anim: RaphaelAnimation, animation: RaphaelAnimation): RaphaelElement; attr(attrName: string, value: any): RaphaelElement; - attr(params: { [key: any]: any; }): RaphaelElement; + attr(params: { [key: string]: any; }): RaphaelElement; attr(attrName: string): any; attr(attrNames: string[]): any[]; click(handler: Function): RaphaelElement;