diff --git a/lib/utils/src/react.ts b/lib/utils/src/react.ts index 4cc1b59..29d2a48 100644 --- a/lib/utils/src/react.ts +++ b/lib/utils/src/react.ts @@ -21,11 +21,11 @@ export function useReRender() { const ReactFiberWalkable = new Set(['props', 'children', 'child', 'sibling']) -export function findInReactFiber( - tree: Extract, - filter: SearchFilter, -): any { - return findInTree(tree, filter, { +export function findInReactFiber( + tree: Extract, + filter: F, +) { + return findInTree(tree, filter, { walkable: ReactFiberWalkable, }) }