Refactor: merge duplicate imports (#25489)
Co-authored-by: Jan Kassens <jan@kassens.net>
c0dedance committed
Oct 17, 2022 at 09:58 UTC
9fb581c7cc9b08a776d440254048734c3ffec78c
30 files changed
+78
-78
packages/react-devtools-shared/src/utils.js
+1
-1
@@ -41,9 +41,9 @@ import {
41
LOCAL_STORAGE_SHOW_INLINE_WARNINGS_AND_ERRORS_KEY,
42
LOCAL_STORAGE_HIDE_CONSOLE_LOGS_IN_STRICT_MODE,
43
} from './constants';
44
-import {ElementTypeRoot} from 'react-devtools-shared/src/types';
44
import {ComponentFilterElementType, ElementTypeHostComponent} from './types';
45
import {
46
+ ElementTypeRoot,
47
ElementTypeClass,
48
ElementTypeForwardRef,
49
ElementTypeFunction,
packages/react-devtools-timeline/src/TimelineContext.js
+1
-2
@@ -7,7 +7,7 @@
7
* @flow
8
*/
9
10
-import type {ReactContext} from 'shared/ReactTypes';
10
+import type {ReactContext, RefObject} from 'shared/ReactTypes';
11
12
import * as React from 'react';
13
import {
@@ -27,7 +27,6 @@ import type {
27
ViewState,
28
ReactEventInfo,
29
} from './types';
30
-import type {RefObject} from 'shared/ReactTypes';
30
31
export type Context = {
32
file: File | null,
packages/react-devtools-timeline/src/view-base/HorizontalPanAndZoomView.js
+1
-2
@@ -7,7 +7,7 @@
7
* @flow
8
*/
9
10
-import type {Size, IntrinsicSize} from './geometry';
10
+import type {Size, IntrinsicSize, Rect} from './geometry';
11
import type {
12
Interaction,
13
MouseDownInteraction,
@@ -16,7 +16,6 @@ import type {
16
WheelPlainInteraction,
17
WheelWithShiftInteraction,
18
} from './useCanvasInteraction';
19
-import type {Rect} from './geometry';
19
import type {ScrollState} from './utils/scrollState';
20
import type {ViewRefs} from './Surface';
21
import type {ViewState} from '../types';
packages/react-devtools-timeline/src/view-base/VerticalScrollView.js
+1
-2
@@ -7,7 +7,7 @@
7
* @flow
8
*/
9
10
-import type {Size, IntrinsicSize} from './geometry';
10
+import type {Size, IntrinsicSize, Rect} from './geometry';
11
import type {
12
Interaction,
13
MouseDownInteraction,
@@ -15,7 +15,6 @@ import type {
15
MouseUpInteraction,
16
WheelWithShiftInteraction,
17
} from './useCanvasInteraction';
18
-import type {Rect} from './geometry';
18
import type {ScrollState} from './utils/scrollState';
19
import type {ViewRefs} from './Surface';
20
import type {ViewState} from '../types';
packages/react-devtools-timeline/src/view-base/vertical-scroll-overflow/VerticalScrollBarView.js
+1
-1
@@ -7,10 +7,10 @@
7
* @flow
8
*/
9
10
-import type {Interaction} from '../useCanvasInteraction';
10
import type {Rect} from '../geometry';
11
import type {Surface, ViewRefs} from '../Surface';
12
import type {
13
+ Interaction,
14
ClickInteraction,
15
MouseDownInteraction,
16
MouseMoveInteraction,
packages/react-dom-bindings/src/client/ReactDOMHostConfig.js
+1
-1
@@ -24,8 +24,8 @@ import {
24
getFiberFromScopeInstance,
25
getInstanceFromNode as getInstanceFromNodeDOMTree,
26
isContainerMarkedAsRoot,
27
+ detachDeletedInstance,
28
} from './ReactDOMComponentTree';
28
-import {detachDeletedInstance} from './ReactDOMComponentTree';
29
export {detachDeletedInstance};
30
import {hasRole} from './DOMAccessibilityRoles';
31
import {
packages/react-dom-bindings/src/events/DOMPluginEventSystem.js
+5
-8
@@ -8,12 +8,7 @@
8
*/
9
10
import type {DOMEventName} from './DOMEventNames';
11
-import {
12
- type EventSystemFlags,
13
- SHOULD_NOT_DEFER_CLICK_FOR_FB_SUPPORT_MODE,
14
- IS_LEGACY_FB_SUPPORT_MODE,
15
- SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS,
16
-} from './EventSystemFlags';
11
+import type {EventSystemFlags} from './EventSystemFlags';
12
import type {AnyNativeEvent} from './PluginModuleType';
13
import type {
14
KnownReactSyntheticEvent,
@@ -23,6 +18,9 @@ import type {Fiber} from 'react-reconciler/src/ReactInternalTypes';
18
19
import {allNativeEvents} from './EventRegistry';
20
import {
21
+ SHOULD_NOT_DEFER_CLICK_FOR_FB_SUPPORT_MODE,
22
+ IS_LEGACY_FB_SUPPORT_MODE,
23
+ SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS,
24
IS_CAPTURE_PHASE,
25
IS_EVENT_HANDLE_NON_MANAGED_NODE,
26
IS_NON_DELEGATED,
@@ -45,7 +43,7 @@ import {
43
getEventListenerSet,
44
getEventHandlerListeners,
45
} from '../client/ReactDOMComponentTree';
48
-import {COMMENT_NODE} from '../shared/HTMLNodeType';
46
+import {COMMENT_NODE, DOCUMENT_NODE} from '../shared/HTMLNodeType';
47
import {batchedUpdates} from './ReactDOMUpdateBatching';
48
import getListener from './getListener';
49
import {passiveBrowserEventsSupported} from './checkPassiveEvents';
@@ -61,7 +59,6 @@ import {
59
invokeGuardedCallbackAndCatchFirstError,
60
rethrowCaughtError,
61
} from 'shared/ReactErrorUtils';
64
-import {DOCUMENT_NODE} from '../shared/HTMLNodeType';
62
import {createEventListenerWrapperWithPriority} from './ReactDOMEventListener';
63
import {
64
removeEventListener,
packages/react-dom-bindings/src/events/plugins/SimpleEventPlugin.js
+4
-2
@@ -43,10 +43,12 @@ import {
43
accumulateSinglePhaseListeners,
44
accumulateEventHandleNonManagedNodeListeners,
45
} from '../DOMPluginEventSystem';
46
-import {IS_EVENT_HANDLE_NON_MANAGED_NODE} from '../EventSystemFlags';
46
+import {
47
+ IS_EVENT_HANDLE_NON_MANAGED_NODE,
48
+ IS_CAPTURE_PHASE,
49
+} from '../EventSystemFlags';
50
51
import getEventCharCode from '../getEventCharCode';
49
-import {IS_CAPTURE_PHASE} from '../EventSystemFlags';
52
53
import {enableCreateEventHandleAPI} from 'shared/ReactFeatureFlags';
54
packages/react-dom/src/client/ReactDOMRoot.js
+6
-5
@@ -18,7 +18,12 @@ const {Dispatcher} = ReactDOMSharedInternals;
18
import {ReactDOMClientDispatcher} from 'react-dom-bindings/src/client/ReactDOMFloatClient';
19
import {queueExplicitHydrationTarget} from 'react-dom-bindings/src/events/ReactDOMEventReplaying';
20
import {REACT_ELEMENT_TYPE} from 'shared/ReactSymbols';
21
-import {enableFloat, enableHostSingletons} from 'shared/ReactFeatureFlags';
21
+import {
22
+ enableFloat,
23
+ enableHostSingletons,
24
+ allowConcurrentByDefault,
25
+ disableCommentsAsDOMContainers,
26
+} from 'shared/ReactFeatureFlags';
27
28
export type RootType = {
29
render(children: ReactNodeList): void,
@@ -73,10 +78,6 @@ import {
78
isAlreadyRendering,
79
} from 'react-reconciler/src/ReactFiberReconciler';
80
import {ConcurrentRoot} from 'react-reconciler/src/ReactRootTags';
76
-import {
77
- allowConcurrentByDefault,
78
- disableCommentsAsDOMContainers,
79
-} from 'shared/ReactFeatureFlags';
81
82
/* global reportError */
83
const defaultOnRecoverableError =
packages/react-dom/src/test-utils/ReactTestUtils.js
+1
-2
@@ -23,10 +23,9 @@ import {
23
rethrowCaughtError,
24
invokeGuardedCallbackAndCatchFirstError,
25
} from 'shared/ReactErrorUtils';
26
-import {enableFloat} from 'shared/ReactFeatureFlags';
26
+import {enableFloat, enableHostSingletons} from 'shared/ReactFeatureFlags';
27
import assign from 'shared/assign';
28
import isArray from 'shared/isArray';
29
-import {enableHostSingletons} from 'shared/ReactFeatureFlags';
29
30
// Keep in sync with ReactDOM.js:
31
const SecretInternals =
packages/react-native-renderer/src/ReactFabric.js
+1
-1
@@ -23,7 +23,6 @@ import {
23
injectIntoDevTools,
24
getPublicRootInstance,
25
} from 'react-reconciler/src/ReactFiberReconciler';
26
-import {getInspectorDataForInstance} from './ReactNativeFiberInspector';
26
27
import {createPortal as createPortalImpl} from 'react-reconciler/src/ReactPortal';
28
import {setBatchingImplementation} from './legacy-events/ReactGenericBatching';
@@ -39,6 +38,7 @@ import {getClosestInstanceFromNode} from './ReactFabricComponentTree';
38
import {
39
getInspectorDataForViewTag,
40
getInspectorDataForViewAtPoint,
41
+ getInspectorDataForInstance,
42
} from './ReactNativeFiberInspector';
43
import {LegacyRoot, ConcurrentRoot} from 'react-reconciler/src/ReactRootTags';
44
import ReactSharedInternals from 'shared/ReactSharedInternals';
packages/react-native-renderer/src/ReactFabricEventEmitter.js
+8
-4
@@ -7,20 +7,24 @@
7
* @flow
8
*/
9
10
-import type {AnyNativeEvent} from './legacy-events/PluginModuleType';
10
+import type {
11
+ AnyNativeEvent,
12
+ LegacyPluginModule,
13
+} from './legacy-events/PluginModuleType';
14
import type {Fiber} from 'react-reconciler/src/ReactInternalTypes';
12
-import type {LegacyPluginModule} from './legacy-events/PluginModuleType';
15
import type {ReactSyntheticEvent} from './legacy-events/ReactSyntheticEventType';
16
import type {
17
RNTopLevelEventType,
18
TopLevelType,
19
} from './legacy-events/TopLevelEventTypes';
20
19
-import {registrationNameModules} from './legacy-events/EventPluginRegistry';
21
+import {
22
+ registrationNameModules,
23
+ plugins,
24
+} from './legacy-events/EventPluginRegistry';
25
import {batchedUpdates} from './legacy-events/ReactGenericBatching';
26
import accumulateInto from './legacy-events/accumulateInto';
27
23
-import {plugins} from './legacy-events/EventPluginRegistry';
28
import getListeners from './ReactNativeGetListeners';
29
import {runEventsInBatch} from './legacy-events/EventBatching';
30
packages/react-native-renderer/src/ReactNativeEventEmitter.js
+8
-4
@@ -7,16 +7,20 @@
7
* @flow
8
*/
9
10
-import type {AnyNativeEvent} from './legacy-events/PluginModuleType';
10
+import type {
11
+ AnyNativeEvent,
12
+ LegacyPluginModule,
13
+} from './legacy-events/PluginModuleType';
14
import type {Fiber} from 'react-reconciler/src/ReactInternalTypes';
12
-import type {LegacyPluginModule} from './legacy-events/PluginModuleType';
15
import type {ReactSyntheticEvent} from './legacy-events/ReactSyntheticEventType';
16
import type {TopLevelType} from './legacy-events/TopLevelEventTypes';
17
16
-import {registrationNameModules} from './legacy-events/EventPluginRegistry';
18
+import {
19
+ registrationNameModules,
20
+ plugins,
21
+} from './legacy-events/EventPluginRegistry';
22
import {batchedUpdates} from './legacy-events/ReactGenericBatching';
23
import {runEventsInBatch} from './legacy-events/EventBatching';
19
-import {plugins} from './legacy-events/EventPluginRegistry';
24
import getListeners from './ReactNativeGetListeners';
25
import accumulateInto from './legacy-events/accumulateInto';
26
packages/react-native-renderer/src/ReactNativeRenderer.js
+1
-1
@@ -36,12 +36,12 @@ import {
36
UIManager,
37
legacySendAccessibilityEvent,
38
} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface';
39
-import {getInspectorDataForInstance} from './ReactNativeFiberInspector';
39
40
import {getClosestInstanceFromNode} from './ReactNativeComponentTree';
41
import {
42
getInspectorDataForViewTag,
43
getInspectorDataForViewAtPoint,
44
+ getInspectorDataForInstance,
45
} from './ReactNativeFiberInspector';
46
import {LegacyRoot} from 'react-reconciler/src/ReactRootTags';
47
import ReactSharedInternals from 'shared/ReactSharedInternals';
packages/react-reconciler/src/ReactFiberBeginWork.new.js
+1
-1
@@ -11,12 +11,12 @@ import type {
11
ReactProviderType,
12
ReactContext,
13
ReactNodeList,
14
+ MutableSource,
15
} from 'shared/ReactTypes';
16
import type {LazyComponent as LazyComponentType} from 'react/src/ReactLazy';
17
import type {Fiber, FiberRoot} from './ReactInternalTypes';
18
import type {TypeOfMode} from './ReactTypeOfMode';
19
import type {Lanes, Lane} from './ReactFiberLane.new';
19
-import type {MutableSource} from 'shared/ReactTypes';
20
import type {
21
SuspenseState,
22
SuspenseListRenderState,
packages/react-reconciler/src/ReactFiberBeginWork.old.js
+1
-1
@@ -11,12 +11,12 @@ import type {
11
ReactProviderType,
12
ReactContext,
13
ReactNodeList,
14
+ MutableSource,
15
} from 'shared/ReactTypes';
16
import type {LazyComponent as LazyComponentType} from 'react/src/ReactLazy';
17
import type {Fiber, FiberRoot} from './ReactInternalTypes';
18
import type {TypeOfMode} from './ReactTypeOfMode';
19
import type {Lanes, Lane} from './ReactFiberLane.old';
19
-import type {MutableSource} from 'shared/ReactTypes';
20
import type {
21
SuspenseState,
22
SuspenseListRenderState,
packages/react-reconciler/src/ReactFiberCommitWork.new.js
+5
-2
@@ -15,8 +15,11 @@ import type {
15
ChildSet,
16
UpdatePayload,
17
} from './ReactFiberHostConfig';
18
-import type {Fiber} from './ReactInternalTypes';
19
-import type {FiberRoot, EventFunctionWrapper} from './ReactInternalTypes';
18
+import type {
19
+ Fiber,
20
+ FiberRoot,
21
+ EventFunctionWrapper,
22
+} from './ReactInternalTypes';
23
import type {Lanes} from './ReactFiberLane.new';
24
import type {SuspenseState} from './ReactFiberSuspenseComponent.new';
25
import type {UpdateQueue} from './ReactFiberClassUpdateQueue.new';
packages/react-reconciler/src/ReactFiberCommitWork.old.js
+5
-2
@@ -15,8 +15,11 @@ import type {
15
ChildSet,
16
UpdatePayload,
17
} from './ReactFiberHostConfig';
18
-import type {Fiber} from './ReactInternalTypes';
19
-import type {FiberRoot, EventFunctionWrapper} from './ReactInternalTypes';
18
+import type {
19
+ Fiber,
20
+ FiberRoot,
21
+ EventFunctionWrapper,
22
+} from './ReactInternalTypes';
23
import type {Lanes} from './ReactFiberLane.old';
24
import type {SuspenseState} from './ReactFiberSuspenseComponent.old';
25
import type {UpdateQueue} from './ReactFiberClassUpdateQueue.old';
packages/react-reconciler/src/ReactFiberCompleteWork.new.js
+7
-10
@@ -7,7 +7,7 @@
7
* @flow
8
*/
9
10
-import type {Fiber} from './ReactInternalTypes';
10
+import type {Fiber, FiberRoot} from './ReactInternalTypes';
11
import type {RootState} from './ReactFiberRoot.new';
12
import type {Lanes, Lane} from './ReactFiberLane.new';
13
import type {
@@ -15,7 +15,6 @@ import type {
15
ReactContext,
16
Wakeable,
17
} from 'shared/ReactTypes';
18
-import type {FiberRoot} from './ReactInternalTypes';
18
import type {
19
Instance,
20
Type,
@@ -34,6 +33,12 @@ import {
33
enableSuspenseAvoidThisFallback,
34
enableLegacyHidden,
35
enableHostSingletons,
36
+ enableSuspenseCallback,
37
+ enableScopeAPI,
38
+ enableProfilerTimer,
39
+ enableCache,
40
+ enableTransitionTracing,
41
+ enableFloat,
42
} from 'shared/ReactFeatureFlags';
43
44
import {resetWorkInProgressVersions as resetMutableSourceWorkInProgressVersions} from './ReactMutableSource.new';
@@ -144,14 +149,6 @@ import {
149
hasUnhydratedTailNodes,
150
upgradeHydrationErrorsToRecoverable,
151
} from './ReactFiberHydrationContext.new';
147
-import {
148
- enableSuspenseCallback,
149
- enableScopeAPI,
150
- enableProfilerTimer,
151
- enableCache,
152
- enableTransitionTracing,
153
- enableFloat,
154
-} from 'shared/ReactFeatureFlags';
152
import {
153
renderDidSuspend,
154
renderDidSuspendDelayIfPossible,
packages/react-reconciler/src/ReactFiberCompleteWork.old.js
+7
-10
@@ -7,7 +7,7 @@
7
* @flow
8
*/
9
10
-import type {Fiber} from './ReactInternalTypes';
10
+import type {Fiber, FiberRoot} from './ReactInternalTypes';
11
import type {RootState} from './ReactFiberRoot.old';
12
import type {Lanes, Lane} from './ReactFiberLane.old';
13
import type {
@@ -15,7 +15,6 @@ import type {
15
ReactContext,
16
Wakeable,
17
} from 'shared/ReactTypes';
18
-import type {FiberRoot} from './ReactInternalTypes';
18
import type {
19
Instance,
20
Type,
@@ -34,6 +33,12 @@ import {
33
enableSuspenseAvoidThisFallback,
34
enableLegacyHidden,
35
enableHostSingletons,
36
+ enableSuspenseCallback,
37
+ enableScopeAPI,
38
+ enableProfilerTimer,
39
+ enableCache,
40
+ enableTransitionTracing,
41
+ enableFloat,
42
} from 'shared/ReactFeatureFlags';
43
44
import {resetWorkInProgressVersions as resetMutableSourceWorkInProgressVersions} from './ReactMutableSource.old';
@@ -144,14 +149,6 @@ import {
149
hasUnhydratedTailNodes,
150
upgradeHydrationErrorsToRecoverable,
151
} from './ReactFiberHydrationContext.old';
147
-import {
148
- enableSuspenseCallback,
149
- enableScopeAPI,
150
- enableProfilerTimer,
151
- enableCache,
152
- enableTransitionTracing,
153
- enableFloat,
154
-} from 'shared/ReactFeatureFlags';
152
import {
153
renderDidSuspend,
154
renderDidSuspendDelayIfPossible,
packages/react-reconciler/src/ReactFiberConcurrentUpdates.new.js
+1
-1
@@ -22,6 +22,7 @@ import type {OffscreenInstance} from './ReactFiberOffscreenComponent';
22
import {
23
warnAboutUpdateOnNotYetMountedFiberInDEV,
24
throwIfInfiniteUpdateLoopDetected,
25
+ getWorkInProgressRoot,
26
} from './ReactFiberWorkLoop.new';
27
import {
28
NoLane,
@@ -32,7 +33,6 @@ import {
33
import {NoFlags, Placement, Hydrating} from './ReactFiberFlags';
34
import {HostRoot, OffscreenComponent} from './ReactWorkTags';
35
import {OffscreenVisible} from './ReactFiberOffscreenComponent';
35
-import {getWorkInProgressRoot} from './ReactFiberWorkLoop.new';
36
37
export type ConcurrentUpdate = {
38
next: ConcurrentUpdate,
packages/react-reconciler/src/ReactFiberConcurrentUpdates.old.js
+1
-1
@@ -22,6 +22,7 @@ import type {OffscreenInstance} from './ReactFiberOffscreenComponent';
22
import {
23
warnAboutUpdateOnNotYetMountedFiberInDEV,
24
throwIfInfiniteUpdateLoopDetected,
25
+ getWorkInProgressRoot,
26
} from './ReactFiberWorkLoop.old';
27
import {
28
NoLane,
@@ -32,7 +33,6 @@ import {
33
import {NoFlags, Placement, Hydrating} from './ReactFiberFlags';
34
import {HostRoot, OffscreenComponent} from './ReactWorkTags';
35
import {OffscreenVisible} from './ReactFiberOffscreenComponent';
35
-import {getWorkInProgressRoot} from './ReactFiberWorkLoop.old';
36
37
export type ConcurrentUpdate = {
38
next: ConcurrentUpdate,
packages/react-reconciler/src/ReactFiberHooks.new.js
+1
-1
@@ -18,6 +18,7 @@ import type {
18
} from 'shared/ReactTypes';
19
import type {
20
Fiber,
21
+ FiberRoot,
22
Dispatcher,
23
HookType,
24
MemoCache,
@@ -25,7 +26,6 @@ import type {
26
} from './ReactInternalTypes';
27
import type {Lanes, Lane} from './ReactFiberLane.new';
28
import type {HookFlags} from './ReactHookEffectTags';
28
-import type {FiberRoot} from './ReactInternalTypes';
29
import type {Flags} from './ReactFiberFlags';
30
31
import ReactSharedInternals from 'shared/ReactSharedInternals';
packages/react-reconciler/src/ReactFiberHooks.old.js
+1
-1
@@ -18,6 +18,7 @@ import type {
18
} from 'shared/ReactTypes';
19
import type {
20
Fiber,
21
+ FiberRoot,
22
Dispatcher,
23
HookType,
24
MemoCache,
@@ -25,7 +26,6 @@ import type {
26
} from './ReactInternalTypes';
27
import type {Lanes, Lane} from './ReactFiberLane.old';
28
import type {HookFlags} from './ReactHookEffectTags';
28
-import type {FiberRoot} from './ReactInternalTypes';
29
import type {Flags} from './ReactFiberFlags';
30
31
import ReactSharedInternals from 'shared/ReactSharedInternals';
packages/react-reconciler/src/ReactFiberHotReloading.js
+1
-2
@@ -7,10 +7,9 @@
7
* @flow
8
*/
9
10
-import type {Fiber} from './ReactInternalTypes';
10
+import type {Fiber, FiberRoot} from './ReactInternalTypes';
11
import type {ReactElement} from '../../shared/ReactElementType';
12
import type {Instance} from './ReactFiberHostConfig';
13
-import type {FiberRoot} from './ReactInternalTypes';
13
import type {ReactNodeList} from 'shared/ReactTypes';
14
15
import {enableNewReconciler} from 'shared/ReactFeatureFlags';
packages/react-reconciler/src/ReactFiberReconciler.new.js
+2
-2
@@ -9,18 +9,18 @@
9
10
import type {
11
Fiber,
12
+ FiberRoot,
13
SuspenseHydrationCallbacks,
14
TransitionTracingCallbacks,
15
} from './ReactInternalTypes';
15
-import type {FiberRoot} from './ReactInternalTypes';
16
import type {RootTag} from './ReactRootTags';
17
import type {
18
Instance,
19
TextInstance,
20
Container,
21
PublicInstance,
22
+ RendererInspectionConfig,
23
} from './ReactFiberHostConfig';
23
-import type {RendererInspectionConfig} from './ReactFiberHostConfig';
24
import type {ReactNodeList} from 'shared/ReactTypes';
25
import type {Lane} from './ReactFiberLane.new';
26
import type {SuspenseState} from './ReactFiberSuspenseComponent.new';
packages/react-reconciler/src/ReactFiberReconciler.old.js
+2
-2
@@ -9,18 +9,18 @@
9
10
import type {
11
Fiber,
12
+ FiberRoot,
13
SuspenseHydrationCallbacks,
14
TransitionTracingCallbacks,
15
} from './ReactInternalTypes';
15
-import type {FiberRoot} from './ReactInternalTypes';
16
import type {RootTag} from './ReactRootTags';
17
import type {
18
Instance,
19
TextInstance,
20
Container,
21
PublicInstance,
22
+ RendererInspectionConfig,
23
} from './ReactFiberHostConfig';
23
-import type {RendererInspectionConfig} from './ReactFiberHostConfig';
24
import type {ReactNodeList} from 'shared/ReactTypes';
25
import type {Lane} from './ReactFiberLane.old';
26
import type {SuspenseState} from './ReactFiberSuspenseComponent.old';
packages/react-reconciler/src/ReactFiberThrow.new.js
+1
-2
@@ -7,8 +7,7 @@
7
* @flow
8
*/
9
10
-import type {Fiber} from './ReactInternalTypes';
11
-import type {FiberRoot} from './ReactInternalTypes';
10
+import type {Fiber, FiberRoot} from './ReactInternalTypes';
11
import type {Lane, Lanes} from './ReactFiberLane.new';
12
import type {CapturedValue} from './ReactCapturedValue';
13
import type {Update} from './ReactFiberClassUpdateQueue.new';
packages/react-reconciler/src/ReactFiberThrow.old.js
+1
-2
@@ -7,8 +7,7 @@
7
* @flow
8
*/
9
10
-import type {Fiber} from './ReactInternalTypes';
11
-import type {FiberRoot} from './ReactInternalTypes';
10
+import type {Fiber, FiberRoot} from './ReactInternalTypes';
11
import type {Lane, Lanes} from './ReactFiberLane.old';
12
import type {CapturedValue} from './ReactCapturedValue';
13
import type {Update} from './ReactFiberClassUpdateQueue.old';
packages/react-test-renderer/src/ReactTestRenderer.js
+1
-2
@@ -7,8 +7,7 @@
7
* @flow
8
*/
9
10
-import type {Fiber} from 'react-reconciler/src/ReactInternalTypes';
11
-import type {FiberRoot} from 'react-reconciler/src/ReactInternalTypes';
10
+import type {Fiber, FiberRoot} from 'react-reconciler/src/ReactInternalTypes';
11
import type {
12
PublicInstance,
13
Instance,