You can use multiple generic types in a function. This video shows how this works and how to name the generic type variables.
My FREE programming apps:
apps.apple.com/app/id659282498
play.google.com/store/apps/details?id=com.weloveco…
My FREE TypeScript Course:
typescript.tv/
Timeline:
00:00 Multiple Generic Parameters in TypeScript
00:21 Naming type variables
00:52 Using multiple generic parameters
05:11 Generic array syntax
Resources:
➜ typescript.tv/errors/
Chest icons created by Freepik - Flaticon: www.flaticon.com/free-icons/chest
Follow TypeScript TV:
🌐 typescript.tv/
🐦 twitter.com/typescripttv
📺 youtube.com/typescripttv
Hashtags:
#TypeScript #JavaScript #CodeNewbie #Programming
コメント