Skip to content

Commit

Permalink
workaround weird tsc bug
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Jul 1, 2024
1 parent 3af986d commit 365c065
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions core/gather/gatherers/link-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'>}
*/
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
Expand Down

0 comments on commit 365c065

Please sign in to comment.