aboutsummaryrefslogtreecommitdiff
path: root/src/webpack/common
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-04-04 21:27:44 +0200
committerVendicated <vendicated@riseup.net>2023-04-04 21:27:44 +0200
commita55c758b0ea7fd4ea804d3174f033b1bc5780aac (patch)
tree8a910c205ac337911d2ee057ded00acaba150a86 /src/webpack/common
parentf092f434fe48ba0db8b3c0c66524899b5a21c4f1 (diff)
downloadVencord-a55c758b0ea7fd4ea804d3174f033b1bc5780aac.tar.gz
Vencord-a55c758b0ea7fd4ea804d3174f033b1bc5780aac.tar.bz2
Vencord-a55c758b0ea7fd4ea804d3174f033b1bc5780aac.zip
Fix SpotifyControls
Diffstat (limited to 'src/webpack/common')
-rw-r--r--src/webpack/common/types/menu.d.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/webpack/common/types/menu.d.ts b/src/webpack/common/types/menu.d.ts
index e48d594..bf5508a 100644
--- a/src/webpack/common/types/menu.d.ts
+++ b/src/webpack/common/types/menu.d.ts
@@ -21,7 +21,7 @@ import type { ComponentType, CSSProperties, PropsWithChildren, UIEvent } from "r
type RC<C> = ComponentType<PropsWithChildren<C & Record<string, any>>>;
export interface Menu {
- ContextMenu: RC<{
+ Menu: RC<{
navId: string;
onClose(): void;
className?: string;
@@ -49,19 +49,21 @@ export interface Menu {
id: string;
interactive?: boolean;
}>;
+ // TODO: Type me
+ MenuSliderControl: RC<any>;
}
export interface ContextMenuApi {
close(): void;
open(
event: UIEvent,
- render?: Menu["ContextMenu"],
+ render?: Menu["Menu"],
options?: { enableSpellCheck?: boolean; },
- renderLazy?: () => Promise<Menu["ContextMenu"]>
+ renderLazy?: () => Promise<Menu["Menu"]>
): void;
openLazy(
event: UIEvent,
- renderLazy?: () => Promise<Menu["ContextMenu"]>,
+ renderLazy?: () => Promise<Menu["Menu"]>,
options?: { enableSpellCheck?: boolean; }
): void;
}