Skip to content

Commit 13c5da3

Browse files
manzoorwanijkmanzoorwanijksirreal
authored
Upgrade TypeScript to 5.9 (WordPress#72995)
Co-authored-by: manzoorwanijk <[email protected]> Co-authored-by: sirreal <[email protected]>
1 parent 508a48b commit 13c5da3

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
"stylelint-plugin-logical-css": "^1.2.3",
175175
"terser": "5.32.0",
176176
"terser-webpack-plugin": "5.3.10",
177-
"typescript": "5.7.2",
177+
"typescript": "5.9.3",
178178
"uuid": "9.0.1",
179179
"wait-on": "8.0.1",
180180
"webdriverio": "8.16.20",

packages/compose/src/hooks/use-fixed-window-list/index.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,13 @@ export default function useFixedWindowList(
6161
return;
6262
}
6363
const scrollContainer = getScrollContainer( elementRef.current );
64-
const measureWindow = (
65-
/** @type {boolean | undefined} */ initRender
66-
) => {
64+
/**
65+
* Measures and sets the window of items to render based on the scroll position
66+
*
67+
* @param {boolean} [initRender] Indicates if this is the initial render
68+
* @return {void}
69+
*/
70+
const measureWindow = ( initRender ) => {
6771
if ( ! scrollContainer ) {
6872
return;
6973
}

0 commit comments

Comments
 (0)