mirror of
https://github.com/svg/svgo.git
synced 2025-07-31 07:44:22 +03:00
fix: improve jsdoc types and remove excludes (#2107)
This commit is contained in:
@ -60,13 +60,9 @@ export const fn = (_root, params) => {
|
||||
if (match) {
|
||||
// round it to the fixed precision
|
||||
let num = Number(Number(match[1]).toFixed(floatPrecision));
|
||||
/**
|
||||
* @type {any}
|
||||
*/
|
||||
/** @type {any} */
|
||||
let matchedUnit = match[3] || '';
|
||||
/**
|
||||
* @type{'' | keyof typeof absoluteLengths}
|
||||
*/
|
||||
/** @type {'' | keyof typeof absoluteLengths} */
|
||||
let units = matchedUnit;
|
||||
|
||||
// convert absolute values to pixels
|
||||
|
Reference in New Issue
Block a user