From fcdf1ef55943ab5584db1710dbf4e64832e7f686 Mon Sep 17 00:00:00 2001 From: Dominic Go <18517029+dominicstop@users.noreply.github.com> Date: Fri, 12 Nov 2021 20:28:21 +0800 Subject: [PATCH] =?UTF-8?q?=E2=86=A9=EF=B8=8F=20Revert=20"=F0=9F=9B=A0=20T?= =?UTF-8?q?ypes=20-=20Renamed=20Types"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit a3dea55f294e5a5e896a272417ac2567d26698be. --- src/types/MenuConfig.ts | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/types/MenuConfig.ts b/src/types/MenuConfig.ts index 6c8db64..a32a592 100644 --- a/src/types/MenuConfig.ts +++ b/src/types/MenuConfig.ts @@ -2,21 +2,24 @@ export type MenuOptions = 'destructive' | 'displayInline'; /** Maps to `UIMenuElement.State` */ -export type MenuElementState = 'on' | 'off' | 'mixed'; +// TODO: Rename to `UIMenuElementState` +export type MenuState = 'on' | 'off' | 'mixed'; /** Maps to `MenuElement.Attributes` */ -export type MenuElementAttributes = 'hidden' | 'disabled' | 'destructive'; +// TODO: Rename to `MenuElementAttributes` +export type MenuAttributes = 'hidden' | 'disabled' | 'destructive'; export type MenuActionConfig = { actionKey: string; actionTitle: string; + + menuState: MenuState; + menuAttributes: MenuAttributes; + discoverabilityTitle: string; - - menuState: MenuElementState; - menuAttributes: MenuElementAttributes; - icon: any; // TODO - // actionSubtitle - TODO: TBA + + // subtitle - TODO: TBA }; export type MenuConfig = {