mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
srcEvent now uses a union type (as introduced with Typescript 1.4)
This commit is contained in:
1 parent
23b6edd28c
commit
6f80a5812e
1 file changed
+1
-1
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