nuxt / icon

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

fix: add non-null assertion to iconName #133

Closed Tsuyoshi84 closed 3 months ago

Tsuyoshi84 commented 5 months ago

fix #132

Added non-null assertion in iconName so that TypeScript can infer the type as string, not string | undefined.

kylegl commented 3 months ago

Just came here to do the same.

@manniL is there any way we can get this merged?