ionic-team / ionic-team/ionicons

Type string is not assignable to type InferPropType<StringConstructor>

Open
#1,096 1 comment 0 reactions 0 assignees View on GitHub
help wanted type: documentation
Dominant language
TypeScript
Stars
18.2k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.