Skip to content

Commit

Permalink
chore: add jsdoc annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jimniels committed Oct 15, 2023
1 parent eaf4e93 commit f7a8d32
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/js/components/Readlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const { useState } = React;
* @param {object} props
* @param {Readlist} props.readlist
* @param {SetStateReadlist} props.setReadlist
* @param {(string) => void} props.setError
* @param {(string) => void} props.setArticlePreviewUrl
* @param {(error: string) => void} props.setError
* @param {(articlePreviewUrl: string) => void} props.setArticlePreviewUrl
*/
export default function Readlist({
readlist,
Expand Down Expand Up @@ -88,6 +88,10 @@ export default function Readlist({
}
};

/**
* @param {string} key
* @param {any} value
*/
const handleUpdatePartOfReadlist = (key, value) => {
setReadlist((prevReadlist) => ({
...prevReadlist,
Expand Down

0 comments on commit f7a8d32

Please # to comment.