From 75f35882f27252e1255208953a6e801c68d5dcec Mon Sep 17 00:00:00 2001 From: AAGaming Date: Fri, 28 Oct 2022 18:56:27 -0400 Subject: [PATCH] fix(tabs): shut up typescript --- src/deck-components/Tabs.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/deck-components/Tabs.tsx b/src/deck-components/Tabs.tsx index 2d3558d..0cc2fb2 100644 --- a/src/deck-components/Tabs.tsx +++ b/src/deck-components/Tabs.tsx @@ -65,16 +65,11 @@ export interface TabsProps { autoFocusContents?: boolean; } -declare global { - interface Window { - DeckyPluginLoader: any; - } -} - let tabsComponent: any; const getTabs = async () => { if (tabsComponent) return tabsComponent; + // @ts-ignore while (!window?.DeckyPluginLoader?.routerHook?.routes) { console.debug('[DFL:Tabs]: Waiting for Decky router...'); await sleep(500); @@ -83,6 +78,7 @@ const getTabs = async () => { () => { return findInReactTree( findInReactTree( + // @ts-ignore window.DeckyPluginLoader.routerHook.routes .find((x: any) => x.props.path == '/library/app/:appid/achievements') .props.children.type(),