From f03079b0c52b754f55bcdccf2ac7df29f2345de8 Mon Sep 17 00:00:00 2001 From: Dominic Go <18517029+dominicstop@users.noreply.github.com> Date: Sun, 21 Nov 2021 00:00:19 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AB=20Types=20-=20Update=20`MenuConfig?= =?UTF-8?q?`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types/MenuConfig.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/types/MenuConfig.ts b/src/types/MenuConfig.ts index 2359042..83ab1e9 100644 --- a/src/types/MenuConfig.ts +++ b/src/types/MenuConfig.ts @@ -14,6 +14,9 @@ export type MenuState = 'on' | 'off' | 'mixed'; export type MenuAttributes = 'hidden' | 'disabled' | 'destructive'; export type MenuActionConfig = { + // TODO: Next Major Version - Make this required + type?: 'action'; + actionKey: string; actionTitle: string; @@ -39,6 +42,9 @@ export type MenuActionConfig = { }; export type MenuConfig = { + // TODO: Next Major Version - Make this required + type?: 'menu'; + menuTitle: string; menuOptions?: Array;