mirror of
https://github.com/svg/svgo.git
synced 2025-07-29 20:21:14 +03:00
Fix types
This commit is contained in:
@ -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') {
|
||||
|
Reference in New Issue
Block a user