-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deps: upgrade typescript to 5.5.3 #16091
Conversation
TagNames extends Array<string> ? | ||
HtmlAndSvgElementTagNameMap[TagNames[number]] : | ||
TagNames extends string ? | ||
HtmlAndSvgElementTagNameMap[TagNames] : | ||
Element: // Fall back for queries typed-query-selector fails to parse, e.g. `'[alt], [aria-label]'`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the query selector type library broke in a 5.x, and in upgrading I found that their API changed from an array of tags to just a union.
process issue: the clearTimeout issue: we were using an older interface - NodeJS.Timer - which is no longer getting updates. Such as adding the remaining:
|
I ran a bisect over typescript
looks very related: microsoft/TypeScript@615a97b |
d2b5fde
to
365c065
Compare
/** | ||
* This needs to be in the constructor. | ||
* https://github.com/GoogleChrome/lighthouse/issues/12134 | ||
* @type {LH.Gatherer.GathererMeta<'DevtoolsLog'>} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was true for browserify
@@ -389,7 +389,7 @@ function coerceOptionalStringBoolean(value) { | |||
function coerceOutput(values) { | |||
const outputTypes = ['json', 'html', 'csv']; | |||
const errorHint = `Argument 'output' must be an array from choices "${outputTypes.join('", "')}"`; | |||
if (!values.every(/** @return {item is string} */ item => typeof item === 'string')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huge
Upgrades typescript from 5.0.4 to 5.52
....or rather, tries to. I found that 5.1 has introduced errors that I cannot resolve:
summarizing above:
setTimeout
seems to be using the browser definition instead of the Node one, so it doesn't like us giving it NodeJS.Timeoutany
so many cascading errors from that in cliLH.Gatherer.GathererMeta