From e3e1495a53004c16dbef49bc0241b2f114da5806 Mon Sep 17 00:00:00 2001 From: Alexandr Garbuzov Date: Thu, 3 Aug 2023 09:01:32 +0300 Subject: [PATCH] Refactor: Wakatime card: Use typedef tags to resolve eslint errors (#3037) --- src/cards/wakatime-card.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/cards/wakatime-card.js b/src/cards/wakatime-card.js index 4ea69f732808d..6aedc5c9a02d4 100644 --- a/src/cards/wakatime-card.js +++ b/src/cards/wakatime-card.js @@ -158,11 +158,16 @@ const recalculatePercentages = (languages) => { }); }; +/** + * @typedef {import('../fetchers/types').WakaTimeData} WakaTimeData + * @typedef {import('./types').WakaTimeOptions} WakaTimeOptions + */ + /** * Renders WakaTime card. * - * @param {Partial} stats WakaTime stats. - * @param {Partial} options Card options. + * @param {Partial} stats WakaTime stats. + * @param {Partial} options Card options. * @returns {string} WakaTime card SVG. */ const renderWakatimeCard = (stats = {}, options = { hide: [] }) => {