Closed nonlinearcom closed 1 month ago
Correction in Log Message
A typo in the log message within the src/module.ts
file was corrected. The misspelled word "colllection" was updated to "collection".
Refactor in Icon Usage Tracking
Within the src/utils.ts
file, the counter for existingIcon.usage
has been updated to use the concise +=
operator. Moreover, the existingIcons
array is now sorted in descending order based on the usage
property, allowing for efficient tracking of commonly used icons.
Addition of Validation in Icon Storage Function
Changes were made in the src/icons.ts
file, where the addIcon
function was augmented with validation checks. Now, if a provided icon does not pass these checks, the function will return null
. Additionally, the system now ensures the icon
object is normalized and its color
property, if a string, begins with a '#', providing better data consistency and integrity.
Fix typo 'colllection'