Skip to content

Commit

Permalink
Add parameter typing to TierRow.colorChanged
Browse files Browse the repository at this point in the history
  • Loading branch information
agatemosu committed Dec 29, 2024
1 parent 7825c7e commit 43f9495
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tier-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ export default class TierRow extends HTMLElement {
this.pickr.on("save", this.colorChanged);
};

/**
* @param {Pickr.HSVaColor} color
*/
colorChanged = (color) => {
if (color === null) {
this.pickr.setColor(clearColor);
Expand Down

0 comments on commit 43f9495

Please sign in to comment.