From 4d836524c133c9e6a8c8e896dd943df3a39701fe Mon Sep 17 00:00:00 2001 From: V Date: Wed, 12 Apr 2023 02:33:51 +0200 Subject: GreetStickerPicker: greet with stickers of your choice (#866) Co-authored-by: Nuckyz <61953774+Nuckyz@users.noreply.github.com> --- src/webpack/common/types/menu.d.ts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/webpack/common') 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 . */ -import type { ComponentType, CSSProperties, PropsWithChildren, UIEvent } from "react"; +import type { ComponentType, CSSProperties, MouseEvent, PropsWithChildren, UIEvent } from "react"; type RC = ComponentType>>; @@ -30,10 +30,14 @@ export interface Menu { onSelect?(): void; }>; MenuSeparator: ComponentType; - MenuGroup: RC; + 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; -- cgit