Autocomplete does not work correctly in WebStorm (TypeScript)

32 views Asked by At

The same project is open. My Icon component is typed correctly.

Why does VSCode, when displaying values for the name field, show only the values available to it, while in WebStorm it offers values from the whole object?

If I specify a wrong value TypeScript complains about the typing - i.e. it works 100%.

  • TypeScript v5.3.3
  • WebStorm v2023.3.6

enter image description here

enter image description here

Tried it:

Invalidate Caches

Expecting:

Autocomplete should only show allowed values

0

There are 0 answers