types
This commit is contained in:
parent
b043d8abb7
commit
5edff4a3c5
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue