TypeScript Interfaces vs Types

Опубликовано: 02 August 2026
на канале: Harry Wolff
90,081
2.8k

I’m answering one of the most asked questions from my last video: What should I use? TypeScript Interface or Type?

It’s a great question, and one I greatly struggled with when I first started learning TypeScript.

Ultimately my advice is simple: use interfaces for objects, and types for everything else.

If you want the longer answer, check out the video.

——

NEWSLETTER: https://tinyletter.com/hswolff/subscribe

PATREON:   / hswolff  

TWITTER:   / hswolff  

SITE: https://hswolff.com/