'Navigate straight to function/definition instead of typescript declaration

When I click with cmd normally I can go to the definition, but with typescript it jumps to the declaration file. Can I change this and go to the defintion. I'll add screenshots.

enter image description here

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source