diff --git a/lib/modules/manager/npm/update/dependency/index.ts b/lib/modules/manager/npm/update/dependency/index.ts
index c2231d7c560e1501791ac997cb3b4e3be2037a29..768a0954af4568d0b8920b5171c771d8d53fd192 100644
--- a/lib/modules/manager/npm/update/dependency/index.ts
+++ b/lib/modules/manager/npm/update/dependency/index.ts
@@ -41,7 +41,7 @@ function replaceAsString(
     parsedContents[depType] = newValue;
   } else if (depName === oldValue) {
     // The old value is the name of the dependency itself
-    delete Object.assign(parsedContents[depType], {
+    delete Object.assign(parsedContents[depType]!, {
       [newValue]: parsedContents[depType]![oldValue],
     })[oldValue];
   } else if (depType === 'dependenciesMeta') {
diff --git a/package.json b/package.json
index 6e39d5297a06293fa5e7ac92696f66a42ee47756..a088ea4908b87928477b0975cb7ff05b562e6ea3 100644
--- a/package.json
+++ b/package.json
@@ -300,7 +300,7 @@
     "ts-jest": "27.1.5",
     "ts-node": "10.8.1",
     "type-fest": "2.12.2",
-    "typescript": "4.6.4",
+    "typescript": "4.7.3",
     "unified": "9.2.2"
   },
   "resolutions": {
diff --git a/yarn.lock b/yarn.lock
index e686994a8a816635bb2305fff2e7d5568dfd9e86..60b6ea121885173584db25d9097377d535a42400 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -9544,10 +9544,10 @@ typedarray-to-buffer@^3.1.5:
   dependencies:
     is-typedarray "^1.0.0"
 
-typescript@4.6.4:
-  version "4.6.4"
-  resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9"
-  integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==
+typescript@4.7.3:
+  version "4.7.3"
+  resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.3.tgz#8364b502d5257b540f9de4c40be84c98e23a129d"
+  integrity sha512-WOkT3XYvrpXx4vMMqlD+8R8R37fZkjyLGlxavMc4iB8lrl8L0DeTcHbYgw/v0N/z9wAFsgBhcsF0ruoySS22mA==
 
 uc.micro@^1.0.1, uc.micro@^1.0.5:
   version "1.0.6"