From 7c58a47b9c51496b4781b07dc7cd1e1c6ea79c92 Mon Sep 17 00:00:00 2001 From: eps1lon Date: Tue, 27 Sep 2022 17:05:33 +0200 Subject: [PATCH] Fix flow --- packages/react-reconciler/src/ReactInternalTypes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-reconciler/src/ReactInternalTypes.js b/packages/react-reconciler/src/ReactInternalTypes.js index c7ee97c69c9e3..fbf99f37d19f2 100644 --- a/packages/react-reconciler/src/ReactInternalTypes.js +++ b/packages/react-reconciler/src/ReactInternalTypes.js @@ -124,7 +124,7 @@ export type Fiber = { // I'll avoid adding an owner field for prod and model that as functions. ref: | null - | (((handle: mixed) => void) & {_stringRef: ?string, ...}) + | (((handle: mixed) => void) & {_stringRef?: string, _functionRef?: (handle: mixed) => void, ...}) | RefObject, // Input is the data coming into process this fiber. Arguments. Props.