diff --git a/src/deck-components/static-classes.ts b/src/deck-components/static-classes.ts index f9dc14c..7cc080b 100644 --- a/src/deck-components/static-classes.ts +++ b/src/deck-components/static-classes.ts @@ -1,66 +1,67 @@ import { findModuleChild } from '../webpack'; -interface StaticClasses { - ActiveTab: string; - AllTabContents: string; - BatteryDetailsLabels: string; - BatteryIcon: string; - BatteryPercentageLabel: string; - BatteryProjectedLabel: string; - BatteryProjectedValue: string; - BatterySectionContainer: string; - Blocked: string; - ComingSoon: string; - Container: string; - ContentTransition: string; - Down: string; - EmptyNotifications: string; - Enter: string; - EnterActive: string; - Exit: string; - ExitActive: string; - FooterBoxShadow: string; - FriendsListTabPanel: string; - FriendsTitle: string; - FullHeight: string; - HeaderAndFooterVisible: string; - HeaderContainer: string; - 'ItemFocusAnim-darkGrey': string; - 'ItemFocusAnim-darkerGrey': string; - 'ItemFocusAnim-darkerGrey-nocolor': string; - 'ItemFocusAnim-green': string; - 'ItemFocusAnim-grey': string; - 'ItemFocusAnimBorder-darkGrey': string; - KeyboardButton: string; - Label: string; - LowBattery: string; - LowBatteryGauge: string; - Menu: string; - Open: string; - PanelExitAnchor: string; - PanelOuterNav: string; - PanelSection: string; - PanelSectionRow: string; - PanelSectionTitle: string; - QuickAccessMenu: string; - ReallyLow: string; - Remaining: string; - Selected: string; - Tab: string; - TabContentColumn: string; - TabGroupPanel: string; - TabPanelHidden: string; - Tabs: string; - Text: string; - Title: string; - TransitionMenuDelay: string; - Up: string; - ViewPlaceholder: string; - VoiceTab: string; - 'duration-app-launch': string; - focusAnimation: string; - hoverAnimation: string; -} +type StaticClasses = Record< + | 'ActiveTab' + | 'AllTabContents' + | 'BatteryDetailsLabels' + | 'BatteryIcon' + | 'BatteryPercentageLabel' + | 'BatteryProjectedLabel' + | 'BatteryProjectedValue' + | 'BatterySectionContainer' + | 'Blocked' + | 'ComingSoon' + | 'Container' + | 'ContentTransition' + | 'Down' + | 'EmptyNotifications' + | 'Enter' + | 'EnterActive' + | 'Exit' + | 'ExitActive' + | 'FooterBoxShadow' + | 'FriendsListTabPanel' + | 'FriendsTitle' + | 'FullHeight' + | 'HeaderAndFooterVisible' + | 'HeaderContainer' + | 'ItemFocusAnim-darkGrey' + | 'ItemFocusAnim-darkerGrey' + | 'ItemFocusAnim-darkerGrey-nocolor' + | 'ItemFocusAnim-green' + | 'ItemFocusAnim-grey' + | 'ItemFocusAnimBorder-darkGrey' + | 'KeyboardButton' + | 'Label' + | 'LowBattery' + | 'LowBatteryGauge' + | 'Menu' + | 'Open' + | 'PanelExitAnchor' + | 'PanelOuterNav' + | 'PanelSection' + | 'PanelSectionRow' + | 'PanelSectionTitle' + | 'QuickAccessMenu' + | 'ReallyLow' + | 'Remaining' + | 'Selected' + | 'Tab' + | 'TabContentColumn' + | 'TabGroupPanel' + | 'TabPanelHidden' + | 'Tabs' + | 'Text' + | 'Title' + | 'TransitionMenuDelay' + | 'Up' + | 'ViewPlaceholder' + | 'VoiceTab' + | 'duration-app-launch' + | 'focusAnimation' + | 'hoverAnimation', + string +>; export const staticClasses: StaticClasses = findModuleChild((mod) => { if (typeof mod !== 'object') return false;