-
-
Notifications
You must be signed in to change notification settings - Fork 223
Closed as not planned
Labels
questionA user questionA user question
Description
Describe the bug
When passing through props from e.g. <li> element
export interface HTMLLiAttributes extends HTMLAttributes<HTMLLIElement> {
value?: string | string[] | number | undefined | null;
}it doesn't seem to be possible to override the default typing for value e.g. consider this component that defaults to rendering as <li> element
the value there expects unknown type but when you try to assign any/unknown type you get an error because index.d.ts typing takes precendence.
Reproduction
The easiest way to reproduce is to use headless ui fork for Svelte: https://svelte-headlessui.goss.io/docs/listbox and copy paste the basic example.
Expected behaviour
It shouldn't give typescript error
System Info
- OS: Windows
- IDE: VSCode
Which package is the issue about?
None
Additional Information, eg. Screenshots
Metadata
Metadata
Assignees
Labels
questionA user questionA user question
