Fix lib typings with errors

This commit is contained in:
Nuckyz 2025-02-16 22:57:05 -03:00
parent 1f67203183
commit 1f0635ffc8
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
6 changed files with 14 additions and 18 deletions

View file

@ -193,13 +193,13 @@ define(Function.prototype, "m", {
// Overwrite Webpack's defineExports function to define the export descriptors configurable.
// This is needed so we can later blacklist specific exports from Webpack search by making them non-enumerable
this.d = function (exports: object, getters: object) {
for (const key in getters) {
if (Object.hasOwn(getters, key) && !Object.hasOwn(exports, key)) {
this.d = function (exports, definition) {
for (const key in definition) {
if (Object.hasOwn(definition, key) && !Object.hasOwn(exports, key)) {
Object.defineProperty(exports, key, {
enumerable: true,
configurable: true,
get: getters[key],
get: definition[key],
});
}
}