disable rule because changed code isn't compatible with current build target

This commit is contained in:
einhornimmond 2025-12-04 13:07:05 +01:00
parent 07a80b2df7
commit 05e275edcf
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@
"noGlobalAssign": "error",
"noImportAssign": "error",
"noMisleadingCharacterClass": "error",
"noPrototypeBuiltins": "error",
"noPrototypeBuiltins": "off",
"noRedeclare": "error",
"noSelfCompare": "error",
"noShadowRestrictedNames": "error",

View File

@ -19,7 +19,7 @@ export const decimalSeparatorByLanguage = (a: Decimal, language: string): string
export function resetInterface<T extends Record<string, any>>(obj: T): T {
// Iterate over all properties of the object
for (const key in obj) {
if (Object.hasOwn(obj, key)) {
if (Object.prototype.hasOwnProperty.call(obj, key)) {
// Set all optional properties to undefined
obj[key] = undefined as T[Extract<keyof T, string>]