Jan Hug commented on merge request !14 at project / blokkli_starterkit

Jan Hug
2025-10-01T09:04:00Z

Return type could be typed as NuxtSvgSpriteSymbol. Can be imported as import type { NuxtSvgSpriteSymbol } from '#nuxt-svg-icon-sprite/runtime'.

This helps to figure out possible type issues, because if you return an invalid icon name in the method, TS would complain in the getIconName method (versus currently it would complain in the template where getIconName is called, which could produce quite a cryptic error ?)