Skip to content

Commit 6e6cd9a

Browse files
qwerty541setdebarr
authored andcommitted
Refactor: Wakatime card: Use typedef tags to resolve eslint errors (anuraghazra#3037)
1 parent 819fdc2 commit 6e6cd9a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/cards/wakatime-card.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,16 @@ const recalculatePercentages = (languages) => {
158158
});
159159
};
160160

161+
/**
162+
* @typedef {import('../fetchers/types').WakaTimeData} WakaTimeData
163+
* @typedef {import('./types').WakaTimeOptions} WakaTimeOptions
164+
*/
165+
161166
/**
162167
* Renders WakaTime card.
163168
*
164-
* @param {Partial<import('../fetchers/types').WakaTimeData>} stats WakaTime stats.
165-
* @param {Partial<import('./types').WakaTimeOptions>} options Card options.
169+
* @param {Partial<WakaTimeData>} stats WakaTime stats.
170+
* @param {Partial<WakaTimeOptions>} options Card options.
166171
* @returns {string} WakaTime card SVG.
167172
*/
168173
const renderWakatimeCard = (stats = {}, options = { hide: [] }) => {

0 commit comments

Comments
 (0)