diff --git a/src/webpack/common/types/stores.d.ts b/src/webpack/common/types/stores.d.ts index 4aa3bedf1..ec52d1627 100644 --- a/src/webpack/common/types/stores.d.ts +++ b/src/webpack/common/types/stores.d.ts @@ -39,7 +39,6 @@ export class FluxStore { registerActionHandlers: GenericFunction; syncWith: GenericFunction; waitFor: GenericFunction; - __getLocalVars(): Record; } export interface Flux { @@ -199,7 +198,7 @@ export type RelationshipStore = FluxStore & Stores.RelationshipStore & { }; export type useStateFromStores = ( - stores: any[], + stores: FluxStore[], mapper: () => T, dependencies?: any[] | null, isEqual?: (old: T, newer: T) => boolean diff --git a/src/webpack/webpack.tsx b/src/webpack/webpack.tsx index 5ea4e038a..0000ce6c1 100644 --- a/src/webpack/webpack.tsx +++ b/src/webpack/webpack.tsx @@ -13,6 +13,7 @@ import { AnyObject } from "@utils/types"; import type { WebpackInstance } from "discord-types/other"; import { traceFunction } from "../debug/Tracer"; +import { GenericStore } from "./common"; const logger = new Logger("Webpack"); @@ -349,7 +350,7 @@ export function findByCode(...code: string[]) { * * @param name The store name */ -export function findStore(name: string) { +export function findStore(name: string) { const result = find(filters.byStoreName(name), m => m, { isIndirect: true }); if (IS_DEV) {