tomblachut / svelte-intellij

Svelte components in WebStorm and friends
MIT License
485 stars 38 forks source link

destructed exports are not suggested #302

Closed FluffyDiscord closed 1 year ago

FluffyDiscord commented 2 years ago

If we have

<script>
    let className

    export { className as class }
    export let test
</script>

IDE does not suggest exported class as a valid prop

obrazek

but the "normal" one works

obrazek

Both are valid in svelte https://svelte.dev/docs#component-format-script-1-export-creates-a-component-prop

tomblachut commented 1 year ago

Handled with Language Server in the 2023.2 IDE releases.