mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
srcEvent now uses a union type (as introduced with Typescript 1.4)
This commit is contained in:
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user