typescript-tips

mattpocockuk Matt Pocock ✈️ Modern Frontends (@mattpocockuk) - November 11, 2022 at 8:37 PM

🔥 TypeScript Tip 🔥

If you’re feeling like a function you’re writing is lacking flexibility, try PASSING IT A FUNCTION.

This is called ‘Inversion of control’, and it lets you write dainty little API’s which give full control over to the users of your function. pic.twitter.com/OQnuIMkWV4

Tweet link