From 43f9495d998f1cc4e8ce752d720cefd85f23b603 Mon Sep 17 00:00:00 2001 From: agatemosu Date: Sun, 29 Dec 2024 17:21:03 +0100 Subject: [PATCH] Add parameter typing to `TierRow.colorChanged` --- src/tier-row.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tier-row.js b/src/tier-row.js index 764badf..7da5406 100644 --- a/src/tier-row.js +++ b/src/tier-row.js @@ -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);