[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;
|
moment: typeof _moment;
|
||||||
chroma: typeof _chroma;
|
chroma: typeof _chroma;
|
||||||
lodash: typeof _lodash;
|
lodash: typeof _lodash;
|
||||||
|
util: PropIntellisense<"inspect" | "isNullOrUndefined">;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
constants: {
|
constants: {
|
||||||
|
|
|
@ -62,3 +62,7 @@ export { chroma } from "@lib/preinit";
|
||||||
|
|
||||||
// Lodash
|
// Lodash
|
||||||
export const lodash = findByProps("forEachRight") as typeof import("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