1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-29 20:21:14 +03:00

Fix types

This commit is contained in:
Bogdan Chadkin
2021-03-10 17:36:36 +03:00
parent 194058b9eb
commit 73768cb65b

View File

@ -186,7 +186,7 @@ function csstreeToStyleDeclaration(declaration) {
* Gets the CSS string of a style element
*
* @param {Object} elem style element
* @return {string|Array} CSS string or empty array if no styles are set
* @return {string} CSS string or empty array if no styles are set
*/
function getCssStr(elem) {
if (elem.content[0].type === 'text' || elem.content[0].type === 'cdata') {
@ -200,7 +200,7 @@ function getCssStr(elem) {
*
* @param {Object} elem style element
* @param {string} css string to be set
* @return {Object} reference to field with CSS
* @return {string} reference to field with CSS
*/
function setCssStr(elem, css) {
if (elem.content[0].type === 'text' || elem.content[0].type === 'cdata') {