Fix jquery.d.ts break with TypeScript 'develop' branch

The beta compiler is smarter about detecting inconsistencies:
jquery.d.ts(192,11): error TS2189: Interface 'JQueryEventObject' cannot simultaneously extend types 'BaseJQueryEventObject' and 'JQueryInputEventObject':
Types of property 'metaKey' of types 'BaseJQueryEventObject' and 'JQueryInputEventObject' are not identical.

Documentation seems to indicate 'boolean' is correct: http://api.jquery.com/event.metaKey/
This commit is contained in:
Derek Cicerone
2013-10-11 20:23:28 -04:00
parent bd8fc348a4
commit d3124df1d4
+1 -1
View File
@@ -156,7 +156,7 @@ interface BaseJQueryEventObject extends Event {
pageX: number;
pageY: number;
which: number;
metaKey: any;
metaKey: boolean;
}
interface JQueryInputEventObject extends BaseJQueryEventObject {