You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/backend/linkFiber.ts
+30-5Lines changed: 30 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -391,6 +391,26 @@ function createTree(
391
391
}
392
392
returntree;
393
393
}
394
+
typeversion=undefined|{version: string};
395
+
/**
396
+
* @interface DevTools - A global object provided by the React Developer Tools extension. It provides a set of methods that allow developers to inspect and manipulate React components in the browser.
397
+
*/
398
+
interfaceDevTools{
399
+
/**
400
+
* @property renderers - an Map object containing information about the React renders that are currently active on the page. The react version being used can be obtained at key = 1.
401
+
*/
402
+
renderers: Map<1,undefined|{version: string}>;
403
+
/**
404
+
* @method getFiberRoots - a method that return a fiber root {set}
405
+
* @param renderID - the ID of the node???
406
+
* @return A set of fiber root.
407
+
*/
408
+
getFiberRoots: (renderID: number)=>Set<number>;
409
+
410
+
onCommitFiberRoot: any;
411
+
}
412
+
413
+
interfaceReactInstance{}
394
414
395
415
/**
396
416
* @method linkFiber
@@ -400,31 +420,34 @@ function createTree(
400
420
* linkFiber contains core module functionality, exported as an anonymous function.
// react devtools global hook is a global object that was injected by the React Devtools content script, allows access to fiber nodes and react version
0 commit comments