7
7
* @noformat
8
8
* @flow strict
9
9
* @nolint
10
- * @generated SignedSource<<b35184ab7e1e173fd34278def089e277 >>
10
+ * @generated SignedSource<<f33ee88cc50bb00a16d281dce9952e21 >>
11
11
*/
12
12
13
13
import type { ElementRef , ElementType , Element , AbstractComponent } from 'react' ;
@@ -217,6 +217,24 @@ export opaque type InternalInstanceHandle = mixed;
217
217
type PublicInstance = mixed ;
218
218
type PublicTextInstance = mixed ;
219
219
220
+ export type RenderRootOptions = {
221
+ onUncaughtError ?: (
222
+ error : mixed ,
223
+ errorInfo : { + componentStack ?: ?string } ,
224
+ ) => void ,
225
+ onCaughtError ?: (
226
+ error : mixed ,
227
+ errorInfo : {
228
+ + componentStack ?: ?string ,
229
+ + errorBoundary ?: ?React$Component < any , any > ,
230
+ } ,
231
+ ) => void ,
232
+ onRecoverableError ?: (
233
+ error : mixed ,
234
+ errorInfo : { + componentStack ?: ?string } ,
235
+ ) => void ,
236
+ } ;
237
+
220
238
export type ReactFabricType = {
221
239
findHostInstance_DEPRECATED< TElementType : ElementType > (
222
240
componentOrHandle : ?( ElementRef < TElementType > | number ) ,
@@ -239,6 +257,7 @@ export type ReactFabricType = {
239
257
containerTag : number ,
240
258
callback : ?( ) => void ,
241
259
concurrentRoot : ?boolean ,
260
+ options : ?RenderRootOptions ,
242
261
) : ?ElementRef < ElementType > ,
243
262
unmountComponentAtNode ( containerTag : number ) : void ,
244
263
getNodeFromInternalInstanceHandle (
0 commit comments