This commit is contained in:
Nuckyz 2024-05-11 06:05:20 -03:00
parent 5676f45781
commit f6e484034c
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
2 changed files with 3 additions and 3 deletions

View file

@ -39,7 +39,6 @@ export class FluxStore {
registerActionHandlers: GenericFunction;
syncWith: GenericFunction;
waitFor: GenericFunction;
__getLocalVars(): Record<string, any>;
}
export interface Flux {
@ -199,7 +198,7 @@ export type RelationshipStore = FluxStore & Stores.RelationshipStore & {
};
export type useStateFromStores = <T>(
stores: any[],
stores: FluxStore[],
mapper: () => T,
dependencies?: any[] | null,
isEqual?: (old: T, newer: T) => boolean

View file

@ -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<T = AnyObject>(...code: string[]) {
*
* @param name The store name
*/
export function findStore<T = AnyObject>(name: string) {
export function findStore<T = GenericStore>(name: string) {
const result = find<T>(filters.byStoreName(name), m => m, { isIndirect: true });
if (IS_DEV) {