Skip to content

Commit

Permalink
chore(typescript): update to 5.5.2 (#6246)
Browse files Browse the repository at this point in the history
No particularly notable changes, just one place where eslint now found `!` to be unneeded.
  • Loading branch information
Haroenv authored Jun 21, 2024
1 parent 035e7a8 commit 54978fe
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions examples/js/media/src/widgets/Articles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ const infiniteHits = connectInfiniteHits<{ container: string }>(
}

const hitsOffset = hits.findIndex(
({ objectID }) => results!.hits[0].objectID === objectID
({ objectID }) => results.hits[0].objectID === objectID
);
const hitsWindow = {
start: results.hitsPerPage * results.page - hitsOffset + 1,
Expand All @@ -251,7 +251,7 @@ const infiniteHits = connectInfiniteHits<{ container: string }>(
.map((hit, index: number) =>
createHit(hit as unknown as Hit, {
isHighlighted:
results!.nbHits !== 3 && (index === 0 || results!.nbHits === 2),
results.nbHits !== 3 && (index === 0 || results.nbHits === 2),
refinedCategory,
})
)
Expand Down
2 changes: 1 addition & 1 deletion examples/react/default-theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"@parcel/transformer-webmanifest": "2.10.0",
"@types/react": "^18.0.9",
"parcel": "2.10.0",
"typescript": "5.1.3"
"typescript": "5.5.2"
}
}
2 changes: 1 addition & 1 deletion examples/react/e-commerce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"@parcel/transformer-webmanifest": "2.10.0",
"@types/react": "^18.0.9",
"parcel": "2.10.0",
"typescript": "5.1.3"
"typescript": "5.5.2"
}
}
2 changes: 1 addition & 1 deletion examples/react/getting-started/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"@parcel/transformer-webmanifest": "2.10.0",
"@types/react": "^18.0.9",
"parcel": "2.10.0",
"typescript": "5.1.3"
"typescript": "5.5.2"
}
}
2 changes: 1 addition & 1 deletion examples/react/next-app-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"@types/react": "18.0.12",
"eslint": "8.4.0",
"eslint-config-next": "12.0.7",
"typescript": "5.1.3"
"typescript": "5.5.2"
}
}
2 changes: 1 addition & 1 deletion examples/react/next-routing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"@types/react": "18.0.12",
"eslint": "8.4.0",
"eslint-config-next": "12.0.7",
"typescript": "5.1.3"
"typescript": "5.5.2"
}
}
2 changes: 1 addition & 1 deletion examples/react/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"@types/react": "18.0.12",
"eslint": "8.4.0",
"eslint-config-next": "12.0.7",
"typescript": "5.1.3"
"typescript": "5.5.2"
}
}
2 changes: 1 addition & 1 deletion examples/react/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"@types/react": "~17.0.21",
"@types/react-native": "~0.64.12",
"expo-cli": "5.1.1",
"typescript": "5.1.3"
"typescript": "5.5.2"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
"shelljs": "0.8.5",
"shipjs": "0.26.0",
"ts-jest": "27",
"typescript": "5.1.3"
"typescript": "5.5.2"
},
"resolutions": {
"brotli-size": "4.0.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -30917,10 +30917,10 @@ typescript@*, [email protected]:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.2.tgz#0ae9cebcfae970718474fe0da2c090cad6577372"
integrity sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==

typescript@5.1.3:
version "5.1.3"
resolved "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz#8d84219244a6b40b6fb2b33cc1c062f715b9e826"
integrity sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==
typescript@5.5.2:
version "5.5.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.2.tgz#c26f023cb0054e657ce04f72583ea2d85f8d0507"
integrity sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==

"typescript@^3 || ^4":
version "4.9.4"
Expand Down

0 comments on commit 54978fe

Please sign in to comment.