From 1ede4e088e137b2ed541de25cf67b7cd7ab12f27 Mon Sep 17 00:00:00 2001 From: Beef Date: Tue, 14 Feb 2023 18:35:48 +0000 Subject: [PATCH] [Metro > Common] Properly type moment --- src/def.d.ts | 4 ++-- src/lib/metro/hoist.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/def.d.ts b/src/def.d.ts index f8bd861..0c36cd6 100644 --- a/src/def.d.ts +++ b/src/def.d.ts @@ -373,8 +373,8 @@ interface VendettaObject { } interface VendettaPluginObject { - manifest: PluginManifest, - storage: Indexable, + manifest: PluginManifest; + storage: Indexable; } declare global { diff --git a/src/lib/metro/hoist.ts b/src/lib/metro/hoist.ts index 09f4bb4..51f8466 100644 --- a/src/lib/metro/hoist.ts +++ b/src/lib/metro/hoist.ts @@ -14,4 +14,4 @@ export const ReactNative = basicFind("Text") as typeof import("react-native"); export const constants = basicFind("AbortCodes"); // Export moment -export const moment = basicFind("isMoment"); +export const moment = basicFind("isMoment") as typeof import("moment");