mirror of
https://github.com/anuraghazra/github-readme-stats.git
synced 2025-02-23 14:50:33 +08:00
Refactor: Repo card: Use typedef tags to resolve eslint errors (#3053)
This commit is contained in:
parent
879dbf1a59
commit
20f0868a17
@ -79,11 +79,16 @@ const iconWithLabel = (icon, label, testid) => {
|
||||
return flexLayout({ items: [iconSvg, text], gap: 20 }).join("");
|
||||
};
|
||||
|
||||
/**
|
||||
* @typedef {import("../fetchers/types").RepositoryData} RepositoryData Repository data.
|
||||
* @typedef {import("./types").RepoCardOptions} RepoCardOptions Repo card options.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Renders repository card details.
|
||||
*
|
||||
* @param {import('../fetchers/types').RepositoryData} repo Repository data.
|
||||
* @param {Partial<import("./types").RepoCardOptions>} options Card options.
|
||||
* @param {RepositoryData} repo Repository data.
|
||||
* @param {Partial<RepoCardOptions>} options Card options.
|
||||
* @returns {string} Repository card SVG object.
|
||||
*/
|
||||
const renderRepoCard = (repo, options = {}) => {
|
||||
|
Loading…
Reference in New Issue
Block a user