Skip to content

Commit

Permalink
Refactor: Stats card: Use typedef tags to resolve eslint errors (anur…
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty541 authored Aug 4, 2023
1 parent 8e15656 commit 4a45310
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/cards/stats-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,16 @@ const createTextNode = ({
`;
};

/**
* @typedef {import('../fetchers/types').StatsData} StatsData
* @typedef {import('./types').StatCardOptions} StatCardOptions
*/

/**
* Renders the stats card.
*
* @param {import('../fetchers/types').StatsData} stats The stats data.
* @param {Partial<import("./types").StatCardOptions>} options The card options.
* @param {StatsData} stats The stats data.
* @param {Partial<StatCardOptions>} options The card options.
* @returns {string} The stats card SVG object.
*/
const renderStatsCard = (stats, options = {}) => {
Expand Down

0 comments on commit 4a45310

Please sign in to comment.