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.
This commit is contained in:
Karlkim Suwanmongkol 2012-12-22 01:06:45 -06:00
parent 27b81b54c7
commit 040d43ad88

View File

@ -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;