Unflowify shims

This commit is contained in:
Dan Abramov committed 2017-03-24 16:22:05 +00:00
1 parent a57e1403d9
commit bd4ff9d6bf
40 files changed
+4 -47

No files matched your search

@@ -21,10 +21,6 @@ var ViewportMetrics = require('ViewportMetrics');
var isStartish = EventPluginUtils.isStartish;
var isEndish = EventPluginUtils.isEndish;
import type {EventTypes, PluginModule} from 'PluginModuleType';
import type {ReactInstance} from 'ReactInstanceType';
import type {TopLevelTypes} from 'EventConstants';
/**
* We are extending the Flow 'Touch' declaration to enable using bracket
* notation to access properties.
@@ -99,7 +95,7 @@ var dependencies = ['topMouseDown', 'topMouseMove', 'topMouseUp'].concat(
touchEvents,
);
var eventTypes: EventTypes = {
var eventTypes = {
touchTap: {
phasedRegistrationNames: {
bubbled: 'onTouchTap',
@@ -113,14 +109,14 @@ var usedTouch = false;
var usedTouchTime = 0;
var TOUCH_DELAY = 1000;
var TapEventPlugin: PluginModule<_Touch> = {
var TapEventPlugin = {
tapMoveThreshold: tapMoveThreshold,
eventTypes: eventTypes,
extractEvents: function(
topLevelType: TopLevelTypes,
targetInst: ReactInstance,
topLevelType: mixed,
targetInst: mixed,
nativeEvent: _Touch,
nativeEventTarget: EventTarget,
) {
-1
View File
@@ -7,7 +7,6 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule flattenChildren
* @flow
*/
'use strict';
-1
View File
@@ -6,7 +6,6 @@
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
* @providesModule getComponentName
*/