What does <T> generally specify in typescript?
thank you for your help.
What does <T> generally specify in typescript?
thank you for your help.
Type Generics. T stands for Type, and is commonly used as the first type variable name when defining generics. But in reality T can be replaced with any valid name. Not only this, we are not limited to only one type variable — we can bring in any amount we wish to define.
I would recommend reading this great article which explains the same.