What makes the desert beautiful?
Hello, I hope you and your family are doing well.
This will be a smaller update than usual because I was working on a new personal project (full-stack application) that took a lot of time this past week.
I promise that next week I will write the usual inspirational text 🙂.
I will leave you with a quote from The Little Prince by Antoine de Saint-Exupéry:
“What makes the desert beautiful,' said the little prince, 'is that somewhere it hides a well...”
I wish you to find your well.
Tip of the week
Let's say you have an interface with an existing property.
How do you make this property accept any data type?
Easy. You use generics.
As you can see, the IPerson interface has a data property of generic data type. In the first example, data is of type string. In the second, data is of type number.
Cool right? Learn more about interfaces here.
Article of the week
Today's article will teach us how to merge objects in TypeScript. Check out the tutorial here.
Thank you for reading.
See you next week!
Tim M.