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 smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +756K followers.

Recommended from Medium

Misconceptions about Swift types

Algorithm’s Era and Problem Solving Patterns (part_1)

Distributed consensus

Tips on building a HA architecture

The Ruby Unbundled Series: Track How Customers Use New Features

The World Wide Web Spoken Language! 🔈

[Writeup] Cyber Apocalypse 2022 — Space Pulse [Hardware]

Free Hack For CSGO Nautical.vip

Free Hack For CSGO Nautical.vip

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
Nicholas Jamieson

Nicholas Jamieson

RxJS core team member; front-end developer; mentor; speaker; open-source contributor

More from Medium

TypeScript the ultimate guide : Build-in Types

Typescript

TypeScript Accessor Decorators In-Depth: Take Control Over 'get' and 'set' Accessor Methods

How to Implement Mock With Spectator With Jest

How to pass a class to a function in TypeScript