sveltejs/language-tools

Derived stores show types as any when using Svelte 5

Closed this issue · 1 comments

Describe the bug

Store values and set, in a derived store, all become any. The code builds OK and shows the correct types within vs.code.

Possibly related: sveltejs/svelte#8699

Reproduction

Error: Parameter '$value' implicitly has an 'any' type. 
        return derived(store, ($value, set) => {

Error: Parameter 'set' implicitly has an 'any' type. 
        return derived(store, ($value, set) => {

Expected behaviour

No warnings for typed code.

System Info

  • OS: Macos Sonoma 14.4.1
  • IDE: VSCode
  • svelte: ^5.0.0-next.120
  • svelte-check: ^3.7.0

Which package is the issue about?

No response

Additional Information, eg. Screenshots

No response

This is most likely something wrong with the type definition therefore closing in favour of sveltejs/svelte#11415