aboutsummaryrefslogtreecommitdiff
path: root/src/webpack/common
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-04-12 02:33:51 +0200
committerGitHub <noreply@github.com>2023-04-12 02:33:51 +0200
commit4d836524c133c9e6a8c8e896dd943df3a39701fe (patch)
treec974bacde275cd41ff670d8dc43fd02c98957737 /src/webpack/common
parentedc96387f5988a443d8bb58fa49ebbc01d9b38b3 (diff)
downloadVencord-4d836524c133c9e6a8c8e896dd943df3a39701fe.tar.gz
Vencord-4d836524c133c9e6a8c8e896dd943df3a39701fe.tar.bz2
Vencord-4d836524c133c9e6a8c8e896dd943df3a39701fe.zip
GreetStickerPicker: greet with stickers of your choice (#866)
Co-authored-by: Nuckyz <61953774+Nuckyz@users.noreply.github.com>
Diffstat (limited to 'src/webpack/common')
-rw-r--r--src/webpack/common/types/menu.d.ts17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/webpack/common/types/menu.d.ts b/src/webpack/common/types/menu.d.ts
index bf5508a..b52e78f 100644
--- a/src/webpack/common/types/menu.d.ts
+++ b/src/webpack/common/types/menu.d.ts
@@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import type { ComponentType, CSSProperties, PropsWithChildren, UIEvent } from "react";
+import type { ComponentType, CSSProperties, MouseEvent, PropsWithChildren, UIEvent } from "react";
type RC<C> = ComponentType<PropsWithChildren<C & Record<string, any>>>;
@@ -30,10 +30,14 @@ export interface Menu {
onSelect?(): void;
}>;
MenuSeparator: ComponentType;
- MenuGroup: RC<any>;
+ MenuGroup: RC<{
+ label?: string;
+ }>;
MenuItem: RC<{
id: string;
label: string;
+ action?(e: MouseEvent): void;
+
render?: ComponentType;
onChildrenScroll?: Function;
childRowHeight?: number;
@@ -41,9 +45,18 @@ export interface Menu {
}>;
MenuCheckboxItem: RC<{
id: string;
+ label: string;
+ checked: boolean;
+ action?(e: MouseEvent): void;
+ disabled?: boolean;
}>;
MenuRadioItem: RC<{
id: string;
+ group: string;
+ label: string;
+ checked: boolean;
+ action?(e: MouseEvent): void;
+ disabled?: boolean;
}>;
MenuControlItem: RC<{
id: string;