Skip to content

Commit

Permalink
Upgrade typescript to fix type checking issue with Next 15.1, add ts-…
Browse files Browse the repository at this point in the history
…ignore in two places in react.dev code to enable typescript upgrade
  • Loading branch information
mattcarrollcode committed Dec 17, 2024
1 parent c5a81fc commit 013e60b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"retext-smartypants": "^4.0.0",
"rss": "^1.2.2",
"tailwindcss": "^3.4.1",
"typescript": "^4.0.2",
"typescript": "^5.7.2",
"unist-util-visit": "^2.0.3",
"webpack-bundle-analyzer": "^4.5.0"
},
Expand Down
1 change: 1 addition & 0 deletions src/components/MDX/TeamMember.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export function TeamMember({
}: TeamMemberProps) {
if (name == null || title == null || permalink == null || children == null) {
throw new Error(
// @ts-ignore
'Expected name, title, permalink, and children for ' + name ??
title ??
permalink ??
Expand Down
1 change: 1 addition & 0 deletions src/components/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export function Search({
}: SearchProps) {
useDocSearchKeyboardEvents({isOpen, onOpen, onClose});
return (
// @ts-ignore
<>
<Head>
<link
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7793,10 +7793,10 @@ typed-array-length@^1.0.6:
is-typed-array "^1.1.13"
possible-typed-array-names "^1.0.0"

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

unbox-primitive@^1.0.1:
version "1.0.1"
Expand Down

0 comments on commit 013e60b

Please sign in to comment.