TypeScript Utility types with Generics
This one will be a little bit more advanced, as we'll be looking at improving our combined utility type we made the other day.
The code so far looks like this:
interface User {
id?: number;
firstname: string;
lastname: string;
age?: number;
}...
h.daily-dev-tips.com3 min read