The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

The Basics of Generics in TypeScript

The Basics of Generics in TypeScript

2:07
It can be painful to write the same function repeatedly with different types. Typescript generics allow us to write 1 function and maintain whatever type(s) our function is given. This lesson covers syntax and a basic use case for Typescript generics.
Watch this lesson now
Avatar
egghead.io

It can be painful to write the same function repeatedly with different types. Typescript generics allow us to write 1 function and maintain whatever type(s) our function is given. This lesson covers syntax and a basic use case for Typescript generics.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?