When I imported (in +page.svelte) a Svelte component that has a form with use:enhace in it. It gave me the issue of Binding element 'update' implicitly has an 'any' type. (ts) on running npm run check. Is there a type that I missed to assign or something, like the SubmitFunction?
Reproduction
Create a svelte component, apply form-actions based use:enhance in that component and import that component in the relative +page.svelte. And run npm run check.
Logs
src/item/sectionComponents/blogs/tables/ContentRow.svelte:75:22
Error: Binding element 'update' implicitly has an 'any' type. (ts)
<form method="POST" use:enhance={()=>{
async ({ update }) => {
update();
Describe the bug
When I imported (in
+page.svelte
) a Svelte component that has a form withuse:enhace
in it. It gave me the issue ofBinding element 'update' implicitly has an 'any' type. (ts)
on runningnpm run check
. Is there a type that I missed to assign or something, like theSubmitFunction
?Reproduction
Create a svelte component, apply form-actions based
use:enhance
in that component and import that component in the relative+page.svelte
. And runnpm run check
.Logs
System Info
Severity
annoyance