Skip to content

Commit 9fe255a

Browse files
authored
build(deps): upgrade TypeScript from 5.x to 6.x (#100)
1 parent fba3c30 commit 9fe255a

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

packages/docs/src/Router.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export const Router: React.FC<RouterProps> = (props) => {
77
// Auto scroll to top - this should be handled by the browser per spec,
88
// but currently Chrome and Safari do not follow the spec.
99
useEffect(() => {
10-
// @ts-expect-error -- TypeScript does not yet know about the Navigation API
1110
const navigation = window.navigation;
1211
if (!navigation) {
1312
return;
@@ -18,8 +17,8 @@ export const Router: React.FC<RouterProps> = (props) => {
1817
() => {
1918
const transition = navigation.transition;
2019
if (
21-
transition.navigationType === "push" ||
22-
transition.navigationType === "replace"
20+
transition?.navigationType === "push" ||
21+
transition?.navigationType === "replace"
2322
) {
2423
// Safari is known to ignore scrolling immediately after a push/replace navigation, so we wait a bit
2524
// Also, Safari doesn't handle scrolling to 0, so we use the -1 trick

pnpm-lock.yaml

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ catalog:
99
"@vitejs/plugin-react": ^6.0.1
1010
react: ^19.2.4
1111
react-dom: ^19.2.4
12-
typescript: ^5.9.3
12+
typescript: ^6.0.2
1313
vite: ^8.0.3
1414

1515
onlyBuiltDependencies:

0 commit comments

Comments
 (0)