[Metro > Common] Add the util polyfill
This commit is contained in:
parent
0a78aa4d60
commit
c58530080e
2 changed files with 5 additions and 0 deletions
1
src/def.d.ts
vendored
1
src/def.d.ts
vendored
|
@ -401,6 +401,7 @@ interface VendettaObject {
|
|||
moment: typeof _moment;
|
||||
chroma: typeof _chroma;
|
||||
lodash: typeof _lodash;
|
||||
util: PropIntellisense<"inspect" | "isNullOrUndefined">;
|
||||
};
|
||||
};
|
||||
constants: {
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue