ionic-team / ionic-team/ionicons

Type string is not assignable to type InferPropType<StringConstructor>

Offen
#1,096 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
help wanted type: documentation
Vorherrschende Sprache
TypeScript
Sterne
18.2k
Forks
2.1k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.