Refactor: its type is Container (#25153)
bubucuo committed
Sep 1, 2022 at 22:43 UTC
2e7f422fea445c232c4723b97e0351aa93eeaa00
2 files changed
+4
-2
packages/react-reconciler/src/ReactFiberRoot.new.js
+2
-1
@@ -15,6 +15,7 @@ import type {
15
} from './ReactInternalTypes';
16
import type {RootTag} from './ReactRootTags';
17
import type {Cache} from './ReactFiberCacheComponent.new';
18
+import type {Container} from './ReactFiberHostConfig';
19
20
import {noTimeout, supportsHydration} from './ReactFiberHostConfig';
21
import {createHostRootFiber} from './ReactFiber.new';
@@ -128,7 +129,7 @@ function FiberRootNode(
129
}
130
131
export function createFiberRoot(
131
- containerInfo: any,
132
+ containerInfo: Container,
133
tag: RootTag,
134
hydrate: boolean,
135
initialChildren: ReactNodeList,
packages/react-reconciler/src/ReactFiberRoot.old.js
+2
-1
@@ -15,6 +15,7 @@ import type {
15
} from './ReactInternalTypes';
16
import type {RootTag} from './ReactRootTags';
17
import type {Cache} from './ReactFiberCacheComponent.old';
18
+import type {Container} from './ReactFiberHostConfig';
19
20
import {noTimeout, supportsHydration} from './ReactFiberHostConfig';
21
import {createHostRootFiber} from './ReactFiber.old';
@@ -128,7 +129,7 @@ function FiberRootNode(
129
}
130
131
export function createFiberRoot(
131
- containerInfo: any,
132
+ containerInfo: Container,
133
tag: RootTag,
134
hydrate: boolean,
135
initialChildren: ReactNodeList,