ionic-team / ionic-team/ionicons

Type string is not assignable to type InferPropType<StringConstructor>

Aperta
#1,096 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
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.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.