If a function returns a store & has an assigned type, the plugin does not seem to infer the store's value type but incorrectly infers the store type instead.
<script lang="ts">
import { writable } from 'svelte/store'
import type { Writable } from 'svelte/store'
const name:Writable<string> = writable('test')
$: cleaned_name = $name.replace(/ +/g, ' ')
</script>
Note that $name is incorrectly inferred as a Writable<string> instead of a string
If a function returns a store & has an assigned type, the plugin does not seem to infer the store's value type but incorrectly infers the store type instead.
Note that
$name
is incorrectly inferred as aWritable<string>
instead of astring