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