Declare Missing Helper Function (TypeScript) in Visual Studio Code

Dev By RayRay
Β·Jul 19, 2021Β·

1 min read

Declare Missing Helper Function (TypeScript) in Visual Studio Code

Subscribe to my newsletter and never miss my upcoming articles

Play this article

Source: Microsoft TypeScript Blog

As I was reading the β€œAnnouncing TypeScript 4.2” post on the TypeScript blog, I discovered a neat feature that is so simple but super valuable to me, so I love to share it here 😁

How does it work?

When you call a function with parameters in a TypeScript file in Visual Studio Code, you get an ugly red line.

If you click the yellow balloon, you can generate a function declaration with typed parameters! Alexander Trasyk builds this feature πŸ’ͺ.

Is there any feature you have discovered lately? Please share them πŸ‘

If you are looking for great Visual Studio Code tips for TypeScript development? Check β€œTips for Coding TypeScript with VSCode” by Fernando Doglio πŸ‘


Thanks!

hashnode-footer.png I hope you learned something new or are inspired to create something new after reading this story! πŸ€— If so, consider subscribing via email (scroll to the top of this page) or follow me here on Hashnode.

Did you know that you can create a Developer blog like this one, yourself? It's entirely for free. πŸ‘πŸ’°πŸŽ‰πŸ₯³πŸ”₯

If I left you with questions or something to say as a response, scroll down and type me a message. Please send me a DM on Twitter @DevByRayRay when you want to keep it private. My DM's are always open 😁

Β 
Share this

Impressum

I learn by writing, and write while learning more and more each day!πŸ‘Š A developer is never finished with learning, thinking that is the most stupid thing to do 🀣