ionic-team / ionic-team/ionicons
Type string is not assignable to type InferPropType<StringConstructor>
Aperta
help wanted
type: documentation
- Lingua principale
- TypeScript
- Stelle
- 18.2k
- Fork
- 2.1k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I'm using Vue3 with TypeScript:
```
import { IonIcon } from "@ionic/vue";
import { beer }from "ionicons/icons";
```
but am getting this TypeScript warning:
`Type string is not assignable to type InferPropType`
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.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.