aboutsummaryrefslogtreecommitdiff
path: root/src/webpack
diff options
context:
space:
mode:
Diffstat (limited to 'src/webpack')
-rw-r--r--src/webpack/common/stores.ts2
-rw-r--r--src/webpack/common/types/components.d.ts16
2 files changed, 13 insertions, 5 deletions
diff --git a/src/webpack/common/stores.ts b/src/webpack/common/stores.ts
index 456255d..d42cb6b 100644
--- a/src/webpack/common/stores.ts
+++ b/src/webpack/common/stores.ts
@@ -48,6 +48,7 @@ export let PoggerModeSettingsStore: GenericStore;
export let GuildStore: Stores.GuildStore & t.FluxStore;
export let UserStore: Stores.UserStore & t.FluxStore;
+export let UserProfileStore: GenericStore;
export let SelectedChannelStore: Stores.SelectedChannelStore & t.FluxStore;
export let SelectedGuildStore: t.FluxStore & Record<string, any>;
export let ChannelStore: Stores.ChannelStore & t.FluxStore;
@@ -86,6 +87,7 @@ export const useStateFromStores: <T>(
waitForStore("DraftStore", s => DraftStore = s);
waitForStore("UserStore", s => UserStore = s);
+waitForStore("UserProfileStore", m => UserProfileStore = m);
waitForStore("ChannelStore", m => ChannelStore = m);
waitForStore("SelectedChannelStore", m => SelectedChannelStore = m);
waitForStore("SelectedGuildStore", m => SelectedGuildStore = m);
diff --git a/src/webpack/common/types/components.d.ts b/src/webpack/common/types/components.d.ts
index 4b316aa..5d5424f 100644
--- a/src/webpack/common/types/components.d.ts
+++ b/src/webpack/common/types/components.d.ts
@@ -398,12 +398,18 @@ export type Paginator = ComponentType<{
hideMaxPage?: boolean;
}>;
-export type MaskedLink = ComponentType<{
- onClick(): void;
- trusted: boolean;
- title: string,
+export type MaskedLink = ComponentType<PropsWithChildren<{
href: string;
-}>;
+ rel?: string;
+ target?: string;
+ title?: string,
+ className?: string;
+ tabIndex?: number;
+ onClick?(): void;
+ trusted?: boolean;
+ messageId?: string;
+ channelId?: string;
+}>>;
export type ScrollerThin = ComponentType<PropsWithChildren<{
className?: string;