The Startup
Published in

The Startup

TypeScript: Prefer Interfaces

Photo by Markus Spiske on Unsplash

Some time after this blog post was written, Anders Hejlsberg opened a PR that preserves type aliases for union and intersection types. That PR’s changes should included in TypeScript 4.2, so when that version is released, the reasons for preferring interfaces might be less compelling.

Recently, I noticed a Twitter thread from Rob Palmer in which he described some performance problems that were caused by the use…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store