2
0
mirror of https://github.com/iconify/iconify.git synced 2025-01-06 23:23:58 +00:00

fix: provide prop types to vue component

This commit is contained in:
Vjacheslav Trushkin 2022-11-25 11:04:24 +02:00
parent 456ed17236
commit 8b2aeff300
2 changed files with 2 additions and 2 deletions

View File

@ -236,7 +236,7 @@ interface IconComponentData {
classes?: string[];
}
export const Icon = defineComponent({
export const Icon = defineComponent<IconProps>({
// Do not inherit other attributes: it is handled by render()
inheritAttrs: false,

View File

@ -73,7 +73,7 @@ export function addCollection(
/**
* Component
*/
export const Icon = defineComponent({
export const Icon = defineComponent<IconProps>({
// Do not inherit other attributes: it is handled by render()
inheritAttrs: false,