Skip to content

Commit 013e60b

Browse files
Upgrade typescript to fix type checking issue with Next 15.1, add ts-ignore in two places in react.dev code to enable typescript upgrade
1 parent c5a81fc commit 013e60b

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"retext-smartypants": "^4.0.0",
9595
"rss": "^1.2.2",
9696
"tailwindcss": "^3.4.1",
97-
"typescript": "^4.0.2",
97+
"typescript": "^5.7.2",
9898
"unist-util-visit": "^2.0.3",
9999
"webpack-bundle-analyzer": "^4.5.0"
100100
},

src/components/MDX/TeamMember.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export function TeamMember({
4040
}: TeamMemberProps) {
4141
if (name == null || title == null || permalink == null || children == null) {
4242
throw new Error(
43+
// @ts-ignore
4344
'Expected name, title, permalink, and children for ' + name ??
4445
title ??
4546
permalink ??

src/components/Search.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export function Search({
109109
}: SearchProps) {
110110
useDocSearchKeyboardEvents({isOpen, onOpen, onClose});
111111
return (
112+
// @ts-ignore
112113
<>
113114
<Head>
114115
<link

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7793,10 +7793,10 @@ typed-array-length@^1.0.6:
77937793
is-typed-array "^1.1.13"
77947794
possible-typed-array-names "^1.0.0"
77957795

7796-
typescript@^4.0.2:
7797-
version "4.5.5"
7798-
resolved "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz"
7799-
integrity sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==
7796+
typescript@^5.7.2:
7797+
version "5.7.2"
7798+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6"
7799+
integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==
78007800

78017801
unbox-primitive@^1.0.1:
78027802
version "1.0.1"

0 commit comments

Comments
 (0)