[TS] Completely remove Indexable from Vendetta
This commit is contained in:
parent
32b3a0295c
commit
b271240f76
5 changed files with 18 additions and 21 deletions
|
@ -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) => {
|
||||
|
|
|
@ -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>>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue