diff --git a/src/webpack/wreq.d.ts b/src/webpack/wreq.d.ts index 6457fcc81..3dccb629d 100644 --- a/src/webpack/wreq.d.ts +++ b/src/webpack/wreq.d.ts @@ -63,7 +63,7 @@ export type WebpackRequire = ((moduleId: PropertyKey) => Module) & { * @example * const fromObject = { a: 1 }; * Object.keys(fromObject).forEach(key => { - * if (key !== "default" && !Object.hasOwn(toObject, key) { + * if (key !== "default" && !Object.hasOwn(toObject, key)) { * Object.defineProperty(toObject, key, { * get: () => fromObject[key], * enumerable: true @@ -121,7 +121,7 @@ export type WebpackRequire = ((moduleId: PropertyKey) => Module) & { * const exports = {}; * const definition = { exportName: () => someExportedValue }; * for (const key in definition) { - * if (Object.hasOwn(definition, key) && !Object.hasOwn(exports, key) { + * if (Object.hasOwn(definition, key) && !Object.hasOwn(exports, key)) { * Object.defineProperty(exports, key, { * get: definition[key], * enumerable: true