06/07/2021
𝐇𝐨𝐰 𝐭𝐨 𝐚𝐯𝐨𝐢𝐝 𝐭𝐡𝐞 €5 𝐟𝐢𝐧𝐞 𝐢𝐧 𝐓𝐲𝐩𝐞𝐒𝐜𝐫𝐢𝐩𝐭 𝐰𝐢𝐭𝐡 “𝐀𝐧𝐲“?
The rule is simple: You pay 5€ for each ‘any’ type we find in your codebase.
In this tech tip video, Davy ENGONE NZE will show you how to type a function and avoid the usage of the ‘any’ type. We will be using the
interface, type and generics in TypeScript.
Watch the tip: https://youtu.be/jMQiqh48IiY ➡️ link in bio!