diff --git a/package.json b/package.json
index b84b8ef55d57da724fdf11ce5d0ec300faa89597..538727d4df2f96fed3bf0b2ca33ac1e7523205a7 100644
--- a/package.json
+++ b/package.json
@@ -29,7 +29,7 @@
     "@docusaurus/module-type-aliases": "3.1.1",
     "@docusaurus/tsconfig": "3.1.1",
     "@docusaurus/types": "3.1.1",
-    "typescript": "~5.2.2"
+    "typescript": "~5.4.0"
   },
   "browserslist": {
     "production": [
diff --git a/yarn.lock b/yarn.lock
index 68ff1c4a3d2fe42213b47b92882900a37627ecf8..604c584019f89d900a549bcca9ca4a3b758dd617 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -8188,10 +8188,10 @@ typedarray-to-buffer@^3.1.5:
   dependencies:
     is-typedarray "^1.0.0"
 
-typescript@~5.2.2:
-  version "5.2.2"
-  resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78"
-  integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==
+typescript@~5.4.0:
+  version "5.4.2"
+  resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.2.tgz#0ae9cebcfae970718474fe0da2c090cad6577372"
+  integrity sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==
 
 undici-types@~5.26.4:
   version "5.26.5"