How to avoid index.d.ts files when look up for definition?

Viewed 97

I enabled a webpack alias in my jsconfig.json file for VSCode.

But when I go to definition of a React component, I get 2 definitions:

  1. my react component
  2. an index.d.ts file of node_modules/@types/react

How do I get rid of the index.d.ts file ? Knowing that I use only jsx.

0 Answers
Related