diff options
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/types.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils/types.ts b/src/utils/types.ts index 54c9674..d2b5e0e 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -17,6 +17,7 @@ */ import { Command } from "@api/Commands"; +import { FluxEvents } from "@webpack/types"; import { Promisable } from "type-fest"; // exists to export default definePlugin({...}) @@ -101,6 +102,12 @@ export interface PluginDef { settingsAboutComponent?: React.ComponentType<{ tempSettings?: Record<string, any>; }>; + /** + * Allows you to subscribe to Flux events + */ + flux?: { + [E in FluxEvents]?: (event: any) => void; + }; } export enum OptionType { |
