diff --git a/src/components/PluginSettings/PluginModal.tsx b/src/components/PluginSettings/PluginModal.tsx index d1b973023..d77aed413 100644 --- a/src/components/PluginSettings/PluginModal.tsx +++ b/src/components/PluginSettings/PluginModal.tsx @@ -52,7 +52,7 @@ const cl = classNameFactory("vc-plugin-modal-"); const UserSummaryItem = findComponentByCode("defaultRenderUser", "showDefaultAvatarsForNullUsers"); const AvatarStyles = findByProps("moreUsers", "emptyUser", "avatarContainer", "clickableAvatar"); -const UserRecord: Constructor> = proxyLazy(() => UserStore.getCurrentUser().constructor) as any; +const UserRecord = proxyLazy>>(() => UserStore.getCurrentUser().constructor); interface PluginModalProps extends ModalProps { plugin: Plugin; diff --git a/src/debug/runReporter.ts b/src/debug/runReporter.ts index bfa881b8c..b42b36716 100644 --- a/src/debug/runReporter.ts +++ b/src/debug/runReporter.ts @@ -18,7 +18,7 @@ async function runReporter() { try { ReporterLogger.log("Starting test..."); - let loadLazyChunksResolve: (value: void | PromiseLike) => void; + let loadLazyChunksResolve: (value: void) => void; const loadLazyChunksDone = new Promise(r => loadLazyChunksResolve = r); // The main patch for starting the reporter chunk loading @@ -34,9 +34,7 @@ async function runReporter() { Vencord.Webpack._initReporter = function () { // initReporter is called in the patched entry point of Discord // setImmediate to only start searching for lazy chunks after Discord initialized the app - setTimeout(async () => { - loadLazyChunks().then(loadLazyChunksResolve); - }, 0); + setTimeout(() => loadLazyChunks().then(loadLazyChunksResolve), 0); }; await loadLazyChunksDone;