Sheraz Manzoorsherazmanzoor.hashnode.dev·Aug 8, 2024Type ✔ Vs Interface ❌: Why you should chose type over interface in typescript.I have come to a solution that you should always use types over interfaces. Let's breakdown why!! Interfaces can only specify objects, but type alias can specify objects and everything else. Let's say we have a single Address field and with type you...type alias
AARYAN BAJAJaaryan-bajaj-learnings.hashnode.dev·Jun 10, 2024Interface vs Type in TypeScript: A Detailed ComparisonIntroduction TypeScript, a statically typed superset of JavaScript, provides developers with robust tools to define the shapes and structures of objects. Two of the most commonly used tools are Interfaces and Types. While they might seem similar a...TypeScript Interface vs Type