diff --git a/src/def.d.ts b/src/def.d.ts index 927551f..ccc57ab 100644 --- a/src/def.d.ts +++ b/src/def.d.ts @@ -401,6 +401,7 @@ interface VendettaObject { moment: typeof _moment; chroma: typeof _chroma; lodash: typeof _lodash; + util: PropIntellisense<"inspect" | "isNullOrUndefined">; }; }; constants: { diff --git a/src/lib/metro/common.ts b/src/lib/metro/common.ts index 482993b..3ad4a3c 100644 --- a/src/lib/metro/common.ts +++ b/src/lib/metro/common.ts @@ -62,3 +62,7 @@ export { chroma } from "@lib/preinit"; // Lodash export const lodash = findByProps("forEachRight") as typeof import("lodash"); + +// The node:util polyfill for RN +// TODO: Find types for this +export const util = findByProps("inspect", "isNullOrUndefined");