Open
Description
Describe the bug
Running svelte-check on <Textfield bind:value />
fails with the following error:
Property 'value' is incompatible with index signature.
Type 'string' is not assignable to type '((false | Attachment<HTMLSpanElement>) & (false | Attachment<HTMLLabelElement>)) | null | undefined'. (ts)
<Textfield bind:value={searchTerm} input$id={searchInputId} input$placeholder="Filter..." class="search-input">
To Reproduce
Steps to reproduce the behavior:
- Create a new SvelteKit application
- Use
Textfield
in a page (other components have this problem as well, such asTabBar
) and passvalue
(also happens withrequired
,disabled
etc.) - Run
npm run check
and see the error.
Expected behavior
Using value
on Textfield
should not produce type errors.
Additional context
This seems to be caused by the new Attachments feature.