diff options
Diffstat (limited to 'src/webpack/common')
| -rw-r--r-- | src/webpack/common/types/menu.d.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webpack/common/types/menu.d.ts b/src/webpack/common/types/menu.d.ts index 8e9218f..58ea626 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, MouseEvent, PropsWithChildren, UIEvent } from "react"; +import type { ComponentType, CSSProperties, MouseEvent, PropsWithChildren, ReactNode, UIEvent } from "react"; type RC<C> = ComponentType<PropsWithChildren<C & Record<string, any>>>; @@ -35,7 +35,7 @@ export interface Menu { }>; MenuItem: RC<{ id: string; - label: string; + label: ReactNode; action?(e: MouseEvent): void; icon?: ComponentType<any>; |
