-
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
Changes from all commits
ffa9dc6
4eb1ca6
9141bdb
3af986d
365c065
0d37678
e2e6b10
048d31f
2d499d7
b226a2a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,18 +94,11 @@ function getLinkElementsInDOM() { | |
/* c8 ignore stop */ | ||
|
||
class LinkElements extends BaseGatherer { | ||
constructor() { | ||
super(); | ||
/** | ||
* 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 commentThe reason will be displayed to describe this comment to others. Learn more. this was true for browserify |
||
*/ | ||
this.meta = { | ||
supportedModes: ['timespan', 'navigation'], | ||
dependencies: {DevtoolsLog: DevtoolsLog.symbol}, | ||
}; | ||
} | ||
/** @type {LH.Gatherer.GathererMeta<'DevtoolsLog'>} */ | ||
meta = { | ||
supportedModes: ['timespan', 'navigation'], | ||
dependencies: {DevtoolsLog: DevtoolsLog.symbol}, | ||
}; | ||
|
||
/** | ||
* @param {LH.Gatherer.Context} context | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ type HtmlAndSvgElementTagNameMap = MergeTypes<HTMLElementTagNameMap|SVGElementTa | |
[id: string]: Element; | ||
}; | ||
type QuerySelectorParse<I extends string> = ParseSelectorToTagNames<I> extends infer TagNames ? | ||
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 commentThe 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. |
||
never; | ||
|
||
|
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