Skip to content

Commit

Permalink
Refactor: Wakatime card: Use typedef tags to resolve eslint errors (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty541 authored Aug 3, 2023
1 parent a986fe2 commit e3e1495
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/cards/wakatime-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,16 @@ const recalculatePercentages = (languages) => {
});
};

/**
* @typedef {import('../fetchers/types').WakaTimeData} WakaTimeData
* @typedef {import('./types').WakaTimeOptions} WakaTimeOptions
*/

/**
* Renders WakaTime card.
*
* @param {Partial<import('../fetchers/types').WakaTimeData>} stats WakaTime stats.
* @param {Partial<import('./types').WakaTimeOptions>} options Card options.
* @param {Partial<WakaTimeData>} stats WakaTime stats.
* @param {Partial<WakaTimeOptions>} options Card options.
* @returns {string} WakaTime card SVG.
*/
const renderWakatimeCard = (stats = {}, options = { hide: [] }) => {
Expand Down

0 comments on commit e3e1495

Please sign in to comment.