TypeScript generic types
When working with types in TypeScript, we assume that we know what kind of type we will be working with.
For instance to define this log function:
const logAndReturn = (input: string): string => {
console.log(input);
return input;
};
In this sim...
h.daily-dev-tips.com3 min read