@@ -16,7 +16,6 @@ import getEventCharCode from './getEventCharCode';
16
16
17
17
type EventInterfaceType = {
18
18
[ propName : string ] : 0 | ( ( event : { [ propName : string ] : mixed , ...} ) => mixed ) ,
19
- ...,
20
19
} ;
21
20
22
21
function functionThatReturnsTrue ( ) {
@@ -153,14 +152,16 @@ const EventInterface = {
153
152
defaultPrevented : 0 ,
154
153
isTrusted : 0 ,
155
154
} ;
156
- export const SyntheticEvent = createSyntheticEvent ( EventInterface ) ;
155
+ export const SyntheticEvent : $FlowFixMe = createSyntheticEvent ( EventInterface ) ;
157
156
158
157
const UIEventInterface : EventInterfaceType = {
159
158
...EventInterface ,
160
159
view : 0 ,
161
160
detail : 0 ,
162
161
} ;
163
- export const SyntheticUIEvent = createSyntheticEvent ( UIEventInterface ) ;
162
+ export const SyntheticUIEvent : $FlowFixMe = createSyntheticEvent (
163
+ UIEventInterface ,
164
+ ) ;
164
165
165
166
let lastMovementX ;
166
167
let lastMovementY ;
@@ -225,7 +226,9 @@ const MouseEventInterface: EventInterfaceType = {
225
226
return lastMovementY ;
226
227
} ,
227
228
} ;
228
- export const SyntheticMouseEvent = createSyntheticEvent ( MouseEventInterface ) ;
229
+ export const SyntheticMouseEvent : $FlowFixMe = createSyntheticEvent (
230
+ MouseEventInterface ,
231
+ ) ;
229
232
230
233
/**
231
234
* @interface DragEvent
@@ -235,7 +238,9 @@ const DragEventInterface: EventInterfaceType = {
235
238
...MouseEventInterface ,
236
239
dataTransfer : 0 ,
237
240
} ;
238
- export const SyntheticDragEvent = createSyntheticEvent ( DragEventInterface ) ;
241
+ export const SyntheticDragEvent : $FlowFixMe = createSyntheticEvent (
242
+ DragEventInterface ,
243
+ ) ;
239
244
240
245
/**
241
246
* @interface FocusEvent
@@ -245,7 +250,9 @@ const FocusEventInterface: EventInterfaceType = {
245
250
...UIEventInterface ,
246
251
relatedTarget : 0 ,
247
252
} ;
248
- export const SyntheticFocusEvent = createSyntheticEvent ( FocusEventInterface ) ;
253
+ export const SyntheticFocusEvent : $FlowFixMe = createSyntheticEvent (
254
+ FocusEventInterface ,
255
+ ) ;
249
256
250
257
/**
251
258
* @interface Event
@@ -258,7 +265,7 @@ const AnimationEventInterface: EventInterfaceType = {
258
265
elapsedTime : 0 ,
259
266
pseudoElement : 0 ,
260
267
} ;
261
- export const SyntheticAnimationEvent = createSyntheticEvent (
268
+ export const SyntheticAnimationEvent : $FlowFixMe = createSyntheticEvent (
262
269
AnimationEventInterface ,
263
270
) ;
264
271
@@ -274,7 +281,7 @@ const ClipboardEventInterface: EventInterfaceType = {
274
281
: window . clipboardData ;
275
282
} ,
276
283
} ;
277
- export const SyntheticClipboardEvent = createSyntheticEvent (
284
+ export const SyntheticClipboardEvent : $FlowFixMe = createSyntheticEvent (
278
285
ClipboardEventInterface ,
279
286
) ;
280
287
@@ -286,7 +293,7 @@ const CompositionEventInterface: EventInterfaceType = {
286
293
...EventInterface ,
287
294
data : 0 ,
288
295
} ;
289
- export const SyntheticCompositionEvent = createSyntheticEvent (
296
+ export const SyntheticCompositionEvent : $FlowFixMe = createSyntheticEvent (
290
297
CompositionEventInterface ,
291
298
) ;
292
299
@@ -487,7 +494,7 @@ const KeyboardEventInterface = {
487
494
return 0 ;
488
495
} ,
489
496
} ;
490
- export const SyntheticKeyboardEvent = createSyntheticEvent (
497
+ export const SyntheticKeyboardEvent : $FlowFixMe = createSyntheticEvent (
491
498
KeyboardEventInterface ,
492
499
) ;
493
500
@@ -508,7 +515,7 @@ const PointerEventInterface = {
508
515
pointerType : 0 ,
509
516
isPrimary : 0 ,
510
517
} ;
511
- export const SyntheticPointerEvent = createSyntheticEvent (
518
+ export const SyntheticPointerEvent : $FlowFixMe = createSyntheticEvent (
512
519
PointerEventInterface ,
513
520
) ;
514
521
@@ -527,7 +534,9 @@ const TouchEventInterface = {
527
534
shiftKey : 0 ,
528
535
getModifierState : getEventModifierState ,
529
536
} ;
530
- export const SyntheticTouchEvent = createSyntheticEvent ( TouchEventInterface ) ;
537
+ export const SyntheticTouchEvent : $FlowFixMe = createSyntheticEvent (
538
+ TouchEventInterface ,
539
+ ) ;
531
540
532
541
/**
533
542
* @interface Event
@@ -540,7 +549,7 @@ const TransitionEventInterface = {
540
549
elapsedTime : 0 ,
541
550
pseudoElement : 0 ,
542
551
} ;
543
- export const SyntheticTransitionEvent = createSyntheticEvent (
552
+ export const SyntheticTransitionEvent : $FlowFixMe = createSyntheticEvent (
544
553
TransitionEventInterface ,
545
554
) ;
546
555
@@ -580,4 +589,6 @@ const WheelEventInterface = {
580
589
// ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
581
590
deltaMode : 0 ,
582
591
} ;
583
- export const SyntheticWheelEvent = createSyntheticEvent ( WheelEventInterface ) ;
592
+ export const SyntheticWheelEvent : $FlowFixMe = createSyntheticEvent (
593
+ WheelEventInterface ,
594
+ ) ;
0 commit comments