Skip to content

Commit 9d42ea0

Browse files
committed
Fix ReactFiberReconciler annotation to include PI
#8628 (comment)
1 parent 2da35fc commit 9d42ea0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/renderers/shared/fiber/ReactFiberReconciler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ module.exports = function<T, P, I, TI, PI, C, CX>(config : HostConfig<T, P, I, T
170170

171171
deferredUpdates,
172172

173-
getPublicRootInstance(container : OpaqueNode) : (ReactComponent<any, any, any> | I | TI | null) {
173+
getPublicRootInstance(container : OpaqueNode) : (ReactComponent<any, any, any> | I | TI | PI | null) {
174174
const root : FiberRoot = (container.stateNode : any);
175175
const containerFiber = root.current;
176176
if (!containerFiber.child) {

src/renderers/testing/ReactTestRendererFiber.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ var TestRenderer = ReactFiberReconciler({
189189

190190
useSyncScheduling: true,
191191

192-
getPublicInstance(inst) {
192+
getPublicInstance(inst : Instance | TextInstance) {
193193
switch (inst.tag) {
194194
case 'INSTANCE':
195195
const createNodeMock = inst.rootContainerInstance.createNodeMock;

0 commit comments

Comments
 (0)