https://www.typescriptlang.org/docs/h...
The most powerful feature of TypeScript - Generic.
Very important concept, and need better understanding.
To me, generic is just a template or a regular expression, that TS uses to check agains your code, it doesn't check completeness but just check if there are logic problems. of your type definitions.
Hi I'm a JavaScript engineer who is not good at algorithms,
and currently practicing leetCode & BFE.dev. If you are interested, maybe we can learn together.