1
0
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:
Seth Falco
2025-04-28 22:24:16 +01:00
committed by GitHub
parent 10c4287051
commit 71a1254895
17 changed files with 252 additions and 172 deletions

View File

@ -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