mirror of
https://github.com/anuraghazra/github-readme-stats.git
synced 2025-02-23 14:50:33 +08:00
Refactor: Wakatime card: Use typedef tags to resolve eslint errors (#3037)
This commit is contained in:
parent
a986fe2b49
commit
e3e1495a53
@ -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: [] }) => {
|
||||
|
Loading…
Reference in New Issue
Block a user