Typescript generic : T vs T extends {} Difference and Examples
TLDR: "T extend {}" allow you your function or class' method to accept pretty much anything except null and undefined. T can be a primitive though.
On the other hand, only T, allow accepting also those value, null and undefined
I do work with Typescr...
blog.allaroundjavascript.com3 min read