konstaui / konsta

Mobile UI components made with Tailwind CSS
https://konstaui.com
MIT License
3.3k stars 119 forks source link

The 'interface Props' defined in MenuListItem.d.ts is missing 'subtitle'. #194

Closed zerodice0 closed 3 months ago

zerodice0 commented 3 months ago

Check that this is really a bug

Reproduction link

https://stackblitz.com/edit/konsta-react-fdjy3z?file=App.tsx

Bug description

image

This seems to happen because MenuListItemProps inherits from HTMLElement, which has a title but no subtitle. If you add 'subtitle' to MenuListItem.d.ts like this, the warning will not occur.

image

Expected Behavior

When writing code using Typescript, you shouldn't get any warnings about the subtitle provided by MenuListItem.

Actual Behavior

When writing code using Typescript, using the subtitle provided by MenuListItem will output a warning.

Konsta UI version

3.1.2

Platform/Target and Browser Versions

macOS Firefox 122.0

Validations

Would you like to open a PR for this bug?