[TS] Completely remove Indexable from Vendetta

This commit is contained in:
Beef 2023-04-15 03:04:48 +01:00
parent 32b3a0295c
commit b271240f76
5 changed files with 18 additions and 21 deletions

View file

@ -1,8 +1,8 @@
import { Asset, Indexable } from "@types";
import { Asset } from "@types";
import { assets } from "@metro/common";
import { after } from "@lib/patcher";
export const all: Indexable<Asset> = {};
export const all: Record<string, Asset> = {};
export function patchAssets() {
const unpatch = after("registerAsset", assets, (args: Asset[], id: number) => {

View file

@ -1,4 +1,3 @@
import { Indexable } from "@types";
import { ReactNative as RN } from "@metro/common";
import { useProxy } from "@lib/storage";
import { HelpMessage, ErrorBoundary, Search } from "@ui/components";
@ -6,7 +5,7 @@ import { CardWrapper } from "@ui/settings/components/Card";
import settings from "@lib/settings";
interface AddonPageProps<T> {
items: Indexable<T & { id: string }>;
items: Record<string, T & { id: string }>;
safeModeMessage: string;
safeModeExtras?: JSX.Element | JSX.Element[];
card: React.ComponentType<CardWrapper<T>>;