You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When referencing properties of destructured variables in a type, it will show the error Cannot find name '<variable>' in both svelte-check and the language server.
Workaround is to do (typeof <variable>)["<property>"] instead of typeof <variable>.<property>.
Describe the bug
Follow up to #2659
When referencing properties of destructured variables in a type, it will show the error
Cannot find name '<variable>'
in both svelte-check and the language server.Workaround is to do
(typeof <variable>)["<property>"]
instead oftypeof <variable>.<property>
.Reproduction
Expected behaviour
Shouldn't throw a type error.
System Info
Which package is the issue about?
svelte-language-server, svelte-check
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: