diff --git a/src/def.d.ts b/src/def.d.ts index 7505e9d..b7e2094 100644 --- a/src/def.d.ts +++ b/src/def.d.ts @@ -340,11 +340,9 @@ interface VendettaObject { getAssetByID: (id: number) => Asset; getAssetIDByName: (name: string) => number; }; - color: { - // TODO: Make a vain attempt to type these - map: Indexable; - raw: Indexable; - } + // TODO: Make a vain attempt to type these + semanticColors: Indexable; + rawColors: Indexable; }; plugins: { plugins: Indexable; diff --git a/src/lib/windowObject.ts b/src/lib/windowObject.ts index 7d2e8c5..6fcdbe2 100644 --- a/src/lib/windowObject.ts +++ b/src/lib/windowObject.ts @@ -12,6 +12,7 @@ import * as common from "@metro/common"; import * as components from "@ui/components"; import * as toasts from "@ui/toasts"; import * as assets from "@ui/assets"; +import * as color from "@ui/color"; import * as utils from "@utils"; function without>(object: T, ...keys: string[]) { @@ -32,6 +33,7 @@ export default async function windowObject(unloads: any[]): Promise