Advanced (Sub)Types in TypeScript You Need to Know
Introduction
I’ve long appreciated the basic types and interfaces that TypeScript offers. They provide invaluable type safety and code clarity.
Consider a common User type:
interface User {
id: number;
name: string;
email: string;
phone: numb...
canopas.hashnode.dev5 min read