Fixed docstring for get styles function to resolve vscode type errors (#2700)

This commit is contained in:
Alexandr Garbuzov 2023-05-07 23:03:00 +03:00 committed by GitHub
parent 688f4e4975
commit 6f449a1f0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,10 +65,11 @@ const getAnimations = () => {
/**
* Retrieves CSS styles for a card.
*
* @param {Object[]} colors The colors to use for the card.
* @param {Object} colors The colors to use for the card.
* @param {string} colors.titleColor The title color.
* @param {string} colors.textColor The text color.
* @param {string} colors.iconColor The icon color.
* @param {string} colors.ringColor The ring color.
* @param {boolean} colors.show_icons Whether to show icons.
* @param {number} colors.progress The progress value to animate to.
* @returns {string} Card CSS styles.