srcEvent now uses a union type (as introduced with Typescript 1.4)

This commit is contained in:
milkisevil
2015-02-03 14:57:45 +00:00
parent 23b6edd28c
commit 6f80a5812e
+1 -1
View File
@@ -167,7 +167,7 @@ declare class HammerInput
center:HammerPoint;
/** Source event object, type TouchEvent, MouseEvent or PointerEvent. */
srcEvent:Event; // TODO: Update to Union Type (TouchEvent | MouseEvent | PointerEvent) if it lands in TS1.4
srcEvent:TouchEvent | MouseEvent | PointerEvent;
/** Target that received the event. */
target:HTMLElement;