GoonCord/src/lib/utils/findInReactTree.ts

6 lines
266 B
TypeScript
Raw Normal View History

2023-04-15 19:54:23 +01:00
import { findInTree } from "@lib/utils";
2024-02-23 15:11:35 +08:00
import { SearchFilter } from "./findInTree";
2022-10-18 23:21:58 +01:00
export const findInReactTree = (tree: { [key: string]: any }, filter: SearchFilter): any => findInTree(tree, filter, {
2023-01-14 02:39:10 +00:00
walkable: ["props", "children", "child", "sibling"],
});