GoonCord/src/lib/utils/findInReactTree.ts

6 lines
244 B
TypeScript
Raw Normal View History

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