This commit is contained in:
Nuckyz 2024-05-11 05:19:12 -03:00
parent b043d8abb7
commit 5edff4a3c5
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
3 changed files with 3 additions and 3 deletions

View file

@ -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<Modals>(filters.byProps("ModalRoot", "ModalCloseButton"), m => {
export const Modals = find<Modals>(filters.byProps("ModalRoot", "ModalCloseButton"), (m: Modals) => {
({ ModalRoot, ModalHeader, ModalContent, ModalFooter, ModalCloseButton } = m);
return m;

View file

@ -28,7 +28,7 @@ export let useCallback: typeof React.useCallback;
export const ReactDOM = findByProps<typeof import("react-dom") & typeof import("react-dom/client")>("createPortal", "render");
export const React = find<typeof import("react")>(filters.byProps("useState"), m => {
export const React = find<typeof import("react")>(filters.byProps("useState"), (m: typeof import("react")) => {
({ useEffect, useState, useMemo, useRef, useReducer, useCallback } = m);
return m;

View file

@ -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<t.FluxDispatcher>(filters.byProps("dispatch", "subscribe"), m => {
export const FluxDispatcher = find<t.FluxDispatcher>(filters.byProps("dispatch", "subscribe"), (m: t.FluxDispatcher) => {
// Non import call to avoid circular dependency
Vencord.Plugins.subscribeAllPluginsFluxEvents(m);