Refactor: Stats card: Use typedef tags to resolve eslint errors (#3039)

This commit is contained in:
Alexandr Garbuzov
2023-08-04 08:08:50 +03:00
committed by GitHub
parent 8e15656dc2
commit 4a4531091f
+7 -2
View File
@@ -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 = {}) => {