Skip to content

Commit

Permalink
Refactor: Repo card: Use typedef tags to resolve eslint errors (#3053)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty541 authored Aug 8, 2023
1 parent 879dbf1 commit 20f0868
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 20f0868

Please sign in to comment.