Fix SpotifyControls

This commit is contained in:
Vendicated 2023-04-04 21:27:44 +02:00
parent f092f434fe
commit a55c758b0e
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905
2 changed files with 13 additions and 17 deletions

View file

@ -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;
}