diff --git a/src/utils/modal.tsx b/src/utils/modal.tsx index d98ca02df..59e522c86 100644 --- a/src/utils/modal.tsx +++ b/src/utils/modal.tsx @@ -108,7 +108,7 @@ export let ModalContent: Modals["ModalContent"] = NoopComponent; export let ModalFooter: Modals["ModalFooter"] = NoopComponent; export let ModalCloseButton: Modals["ModalCloseButton"] = NoopComponent; -export const Modals = find(filters.byProps("ModalRoot", "ModalCloseButton"), m => { +export const Modals = find(filters.byProps("ModalRoot", "ModalCloseButton"), (m: Modals) => { ({ ModalRoot, ModalHeader, ModalContent, ModalFooter, ModalCloseButton } = m); return m; diff --git a/src/webpack/common/react.ts b/src/webpack/common/react.ts index 4a66c4817..6109290ec 100644 --- a/src/webpack/common/react.ts +++ b/src/webpack/common/react.ts @@ -28,7 +28,7 @@ export let useCallback: typeof React.useCallback; export const ReactDOM = findByProps("createPortal", "render"); -export const React = find(filters.byProps("useState"), m => { +export const React = find(filters.byProps("useState"), (m: typeof import("react")) => { ({ useEffect, useState, useMemo, useRef, useReducer, useCallback } = m); return m; diff --git a/src/webpack/common/utils.ts b/src/webpack/common/utils.ts index 54b3637b5..6b78ace91 100644 --- a/src/webpack/common/utils.ts +++ b/src/webpack/common/utils.ts @@ -22,7 +22,7 @@ import type { Channel, User } from "discord-types/general"; import { _resolveReady, filters, find, findByCode, findByProps, waitFor } from "../webpack"; import type * as t from "./types/utils"; -export const FluxDispatcher = find(filters.byProps("dispatch", "subscribe"), m => { +export const FluxDispatcher = find(filters.byProps("dispatch", "subscribe"), (m: t.FluxDispatcher) => { // Non import call to avoid circular dependency Vencord.Plugins.subscribeAllPluginsFluxEvents(m);