diff options
Diffstat (limited to 'src/webpack/common')
-rw-r--r-- | src/webpack/common/types/stores.d.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/webpack/common/types/stores.d.ts b/src/webpack/common/types/stores.d.ts index db60b63..3771150 100644 --- a/src/webpack/common/types/stores.d.ts +++ b/src/webpack/common/types/stores.d.ts @@ -20,14 +20,23 @@ import { Channel } from "discord-types/general"; import { FluxDispatcher, FluxEvents } from "./utils"; +type GenericFunction = (...args: any[]) => any; + export class FluxStore { constructor(dispatcher: FluxDispatcher, eventHandlers?: Partial<Record<FluxEvents, (data: any) => void>>); + addChangeListener(callback: () => void): void; + addReactChangeListener(callback: () => void): void; + removeChangeListener(callback: () => void): void; + removeReactChangeListener(callback: () => void): void; emitChange(): void; getDispatchToken(): string; getName(): string; initialize(): void; initializeIfNeeded(): void; + registerActionHandlers: GenericFunction; + syncWith: GenericFunction; + waitFor: GenericFunction; __getLocalVars(): Record<string, any>; } |