From d7ac418e05f43255c42ea115c9c352cf214753d5 Mon Sep 17 00:00:00 2001 From: V Date: Fri, 23 Jun 2023 18:09:43 +0200 Subject: Fix some plugins displaying legacy discriminators (username#0000) --- src/webpack/common/types/stores.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/webpack') 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 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; } -- cgit