Merge pull request #13223 from overleaf/ae-typescript-upgrade

Upgrade TypeScript to v5

GitOrigin-RevId: 55d98c0e8fdeb39c1297b4472f0d604e25af995b
This commit is contained in:
Alf Eaton
2023-07-17 10:29:14 +00:00
committed by Copybot
parent 4b968017a0
commit 5382178309
8 changed files with 92 additions and 28 deletions
@@ -267,6 +267,7 @@ window.addEventListener('online', () => {
try {
// Note: navigator.connection is not available on Firefox and Safari.
// Docs: https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation
// @ts-ignore
navigator.connection.addEventListener('change', () => {
// The network changed. Schedule another check for it.
accessCheckStatus = ACCESS_CHECK_PENDING
@@ -40,12 +40,12 @@ const ControlledDropdown: FC<ControlledDropdownProps> = ({
// Dropdown.Menu
if ('open' in child.props) {
return cloneElement(child, { open: dropdownProps.open })
return cloneElement<any>(child, { open: dropdownProps.open })
}
// Overlay
if ('show' in child.props) {
return cloneElement(child, { show: dropdownProps.open })
return cloneElement<any>(child, { show: dropdownProps.open })
}
// anything else
+2 -2
View File
@@ -139,7 +139,7 @@
"bowser": "^2.11.0",
"bull": "^3.18.0",
"bunyan": "^1.8.15",
"cache-flow": "^1.7.4",
"cache-flow": "^1.9.0",
"celebrate": "^10.0.1",
"chart.js": "^4.0.1",
"chartjs-adapter-moment": "^1.0.1",
@@ -339,7 +339,7 @@
"timekeeper": "^2.2.0",
"to-string-loader": "^1.2.0",
"tough-cookie": "^4.0.0",
"typescript": "^4.5.5",
"typescript": "^5.0.4",
"val-loader": "^5.0.1",
"webpack": "^5.83.1",
"webpack-assets-manifest": "^5.1.0",
@@ -17,8 +17,9 @@ export const activeEditorLine = () => {
}
// use the parent element if this is a node, e.g. text
const activeElement =
const activeElement = (
'closest' in activeNode ? activeNode : activeNode.parentElement
) as HTMLElement | undefined
return cy.wrap(activeElement?.closest('.cm-line'))
})
+2 -1
View File
@@ -22,5 +22,6 @@
"modules/**/stories/**/*.*",
"cypress",
"types"
]
],
"exclude": ["**/*.min.js"]
}