Skip to content

Commit

Permalink
Refactor: Repo card: Use typedef tags to resolve eslint errors (anura…
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty541 authored and jacobbexten committed Nov 6, 2024
1 parent 0f1de97 commit 98749d4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/cards/repo-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}) => {
Expand Down

0 comments on commit 98749d4

Please sign in to comment.