Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 1.02 KB

mattpocockuk - 1509850662795989005.md

File metadata and controls

23 lines (15 loc) · 1.02 KB
author handle source date
Matt Pocock 🏖️
@mattpocockuk
2022-04-01 11:10:24 UTC

mattpocockuk Matt Pocock 🏖️ (@mattpocockuk) - April 1, 2022 at 7:10 PM

🔥 TypeScript Tip #15 🔥

You can use generics to dynamically specify the number, and type, of arguments to functions.

Here, we create a sendEvent function which only asks for a payload if it's present on the event you're sending. pic.twitter.com/vvhYrBX0nR

mattpocockuk.-.1509850662795989005.mp4

Download mp4

Tweet link

Thread by @mattpocockuk on Threadify Reader App