ionic-team/ionicons
Vedi su GitHubType string is not assignable to type InferPropType<StringConstructor>
Open
#1096 aperta il 24 ago 2022
help wantedtype: documentation
Metriche repository
- Star
- (17.256 star)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
I'm using Vue3 with TypeScript:
import { IonIcon } from "@ionic/vue";
import { beer }from "ionicons/icons";
<ion-icon :icon="beer" />
but am getting this TypeScript warning:
Type string is not assignable to type InferPropType<StringConstructor>
After some googling I still don't understand what this means. What is a StringConstructor type that the icon prop expects?
My code is working but I don't like errors/warnings in my code.