mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-08 11:39:11 +08: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:
1 parent
589c9666c9
commit
093a37ece8
1 file changed
+1
-1
Vendored
+1
-1
@@ -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