more pog
This commit is contained in:
parent
5676f45781
commit
f6e484034c
3
src/webpack/common/types/stores.d.ts
vendored
3
src/webpack/common/types/stores.d.ts
vendored
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue