mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-30 19:23:29 -05:00
parent
f0df91e8e1
commit
102851558d
3 changed files with 11 additions and 9 deletions
|
@ -65,7 +65,7 @@
|
||||||
"@typescript-eslint/eslint-plugin": "^5.59.1",
|
"@typescript-eslint/eslint-plugin": "^5.59.1",
|
||||||
"@typescript-eslint/parser": "^5.59.1",
|
"@typescript-eslint/parser": "^5.59.1",
|
||||||
"diff": "^5.1.0",
|
"diff": "^5.1.0",
|
||||||
"discord-types": "^1.3.3",
|
"discord-types": "^1.3.26",
|
||||||
"esbuild": "^0.15.18",
|
"esbuild": "^0.15.18",
|
||||||
"eslint": "^8.46.0",
|
"eslint": "^8.46.0",
|
||||||
"eslint-import-resolver-alias": "^1.1.2",
|
"eslint-import-resolver-alias": "^1.1.2",
|
||||||
|
|
|
@ -90,7 +90,7 @@ importers:
|
||||||
specifier: ^5.1.0
|
specifier: ^5.1.0
|
||||||
version: 5.1.0
|
version: 5.1.0
|
||||||
discord-types:
|
discord-types:
|
||||||
specifier: ^1.3.3
|
specifier: ^1.3.26
|
||||||
version: 1.3.26
|
version: 1.3.26
|
||||||
esbuild:
|
esbuild:
|
||||||
specifier: ^0.15.18
|
specifier: ^0.15.18
|
||||||
|
|
16
src/webpack/common/types/stores.d.ts
vendored
16
src/webpack/common/types/stores.d.ts
vendored
|
@ -21,21 +21,23 @@ import { Channel, Guild, Role } from "discord-types/general";
|
||||||
|
|
||||||
import { FluxDispatcher, FluxEvents } from "./utils";
|
import { FluxDispatcher, FluxEvents } from "./utils";
|
||||||
|
|
||||||
|
type GenericFunction = (...args: any[]) => any;
|
||||||
|
|
||||||
export class FluxStore {
|
export class FluxStore {
|
||||||
constructor(dispatcher: FluxDispatcher, eventHandlers?: Partial<Record<FluxEvents, (data: any) => void>>);
|
constructor(dispatcher: FluxDispatcher, eventHandlers?: Partial<Record<FluxEvents, (data: any) => void>>);
|
||||||
|
|
||||||
addChangeListener(listener: () => void): void;
|
addChangeListener(callback: () => void): void;
|
||||||
addConditionalChangeListener(removeListener: () => boolean, t?: boolean): void;
|
addReactChangeListener(callback: () => void): void;
|
||||||
|
removeChangeListener(callback: () => void): void;
|
||||||
|
removeReactChangeListener(callback: () => void): void;
|
||||||
emitChange(): void;
|
emitChange(): void;
|
||||||
getDispatchToken(): string;
|
getDispatchToken(): string;
|
||||||
getName(): string;
|
getName(): string;
|
||||||
hasChangeCallbacks(): boolean;
|
|
||||||
initialize(): void;
|
initialize(): void;
|
||||||
initializeIfNeeded(): void;
|
initializeIfNeeded(): void;
|
||||||
mustEmitChanges(conditional?: (t?: unknown) => boolean): void;
|
registerActionHandlers: GenericFunction;
|
||||||
removeChangeListener(listener: () => void): void;
|
syncWith: GenericFunction;
|
||||||
syncWith(stores: FluxStore[], emitChange: boolean, delay?: number): void;
|
waitFor: GenericFunction;
|
||||||
waitFor(...stores: FluxStore[]): void;
|
|
||||||
__getLocalVars(): Record<string, any>;
|
__getLocalVars(): Record<string, any>;
|
||||||
|
|
||||||
static getAll(): FluxStore[];
|
static getAll(): FluxStore[];
|
||||||
|
|
Loading…
Reference in a new issue