💫 Types - Update MenuConfig

This commit is contained in:
Dominic Go 2021-11-21 00:00:19 +08:00
parent 6957cdb1f5
commit f03079b0c5

View File

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