mirror of
https://github.com/bendtherules/react-fiber-traverse.git
synced 2026-08-18 13:52:36 +00:00
Refactor FiberNode typedef to separate file
This commit is contained in:
+1
-6
@@ -1,10 +1,5 @@
|
||||
// import { isNodeSimple } from './utils';
|
||||
|
||||
export interface FiberNode {
|
||||
child: FiberNode | null;
|
||||
sibling: FiberNode | null;
|
||||
// Add type
|
||||
}
|
||||
import {FiberNode} from './mocked-types';
|
||||
|
||||
function traverse(node: FiberNode, fn: (node: FiberNode) => any) {
|
||||
// if (node.child) {
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
export interface FiberNode {
|
||||
child: FiberNode | null;
|
||||
sibling: FiberNode | null;
|
||||
// Add type
|
||||
}
|
||||
Reference in New Issue
Block a user