Happiness is a choice

Tim Mouskhelichvili
Tim Mouskhelichvili
2 minutes to read

Hello, my dear friends! I hope you and your families are doing well.

I am still pretty busy with the web application I've been working on, but I can now say with confidence: I see the end of the tunnel. The first phase of the development of the application will soon be complete!

On the other hand, we have crossed 600 subscribers in this newsletter. I want to say thank you to everyone, you are amazing. Let's continue towards our goal of 1000 subscribers.

To my YouTube subscribers, I know I didn't post anything lately (I am sorry for that 😞). I will soon begin posting again (I want to experiment with different ideas than creating little tutorials).

Unfortunately, we are still living through some tough times. The war and the recession are still going on.

That's why I want to end this message with a quote from Roy T. Bennett:

“Attitude is a choice. Happiness is a choice. Optimism is a choice. Kindness is a choice. Giving is a choice. Respect is a choice. Whatever choice you make makes you. Choose wisely.”

Even though we can't control all the events that happen to us, we can control how we react.

Tip of the week

Let's say you have a union type that contains many different types, including FUNCTION types.

How do keep the FUNCTION types and filter out the rest?

That's right! You need to use the Extract utility types.

Here is an example:

typescript extract

In this example, we filter out types that are not functions.

Cool right? 

Read more here: How Does The Extract Utility Type Work In TypeScript?

Thank you for reading.

See you next week!

Tim M.

Comments (0)
Reply to:
Page content
  1. Tip of the week