This commit is contained in:
thororen1234 2024-08-03 00:24:47 -04:00
parent 6dca8bca13
commit b8a4dff851
15 changed files with 26 additions and 33 deletions

View file

@ -17,8 +17,7 @@
*/
import { LazyComponent } from "@utils/react";
import { FilterFn, filters, lazyWebpackSearchHistory, waitFor } from "../webpack";
import { FilterFn, filters, lazyWebpackSearchHistory, waitFor } from "@webpack";
export function waitForComponent<T extends React.ComponentType<any> = React.ComponentType<any> & Record<string, any>>(name: string, filter: FilterFn | string | string[]): T {
if (IS_REPORTER) lazyWebpackSearchHistory.push(["waitForComponent", Array.isArray(filter) ? filter : [filter]]);