nuxt / icon

The <Icon> component, supporting Iconify, Emojis and custom components.
https://stackblitz.com/edit/nuxt-icon-playground?file=app.vue
MIT License
868 stars 37 forks source link

Typescript error #92

Closed Me-Phew closed 11 months ago

Me-Phew commented 11 months ago

Nuxt-icon: 0.4.2 Nuxt: 3.6.5

node_modules/nuxt-icon/dist/runtime/Icon.vue:29:33 - error TS7053: Element implicitly has an 'any' type because expression of type 'string & {}' can't be used to index type '{}'.

29 const iconName = computed(() => (appConfig.nuxtIcon?.aliases || {})[props.name] || props.name)

Atinux commented 11 months ago

Closing in favour of #86