[Metro > Common] Add the util polyfill

This commit is contained in:
maisy 2023-11-13 23:53:24 +00:00
parent 0a78aa4d60
commit c58530080e
2 changed files with 5 additions and 0 deletions

1
src/def.d.ts vendored
View file

@ -401,6 +401,7 @@ interface VendettaObject {
moment: typeof _moment;
chroma: typeof _chroma;
lodash: typeof _lodash;
util: PropIntellisense<"inspect" | "isNullOrUndefined">;
};
};
constants: {

View file

@ -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");