mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Since TS 0.9.5, "{ [key: string]: any; }" does not map to literal objects anymore.
Accepting "any" is then required to accept object maps in attrs(). This shouldn't affect 0.9x.
This commit is contained in:
2
jquery/jquery.d.ts
vendored
2
jquery/jquery.d.ts
vendored
@@ -647,8 +647,8 @@ interface JQuery {
|
||||
|
||||
attr(attributeName: string): string;
|
||||
attr(attributeName: string, value: any): JQuery;
|
||||
attr(map: { [key: string]: any; }): JQuery;
|
||||
attr(attributeName: string, func: (index: any, attr: any) => any): JQuery;
|
||||
attr(map: any): JQuery;
|
||||
|
||||
hasClass(className: string): boolean;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user