tomblachut / svelte-intellij

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

Shorthand slot props aren't recognized #105

Closed jz222 closed 3 years ago

jz222 commented 4 years ago

Hi,

thanks for the work you are putting into this plugin.

I'm using svelte-routing in a project that makes use of slot properties, as shown in their example.

<Route path="/article/:id" let:params>
    <Article id="{params.id}" />
</Route>

While this compiles without issues, Webstorm complains that params on the Article component is not recognized.

tomblachut commented 4 years ago

You need to use let:params={params} for now :grimacing:

See #11

tomblachut commented 3 years ago

Released as part of 0.17.*