Point 5, "Classes can implement interfaces, but not types", is not correct. IDK if it was the case on a previous version of TypeScript, but at least in the current one (4.8) the example with the createUser class works the same if you change the interface user to be type user instead:
Point 5, "Classes can implement interfaces, but not types", is not correct. IDK if it was the case on a previous version of TypeScript, but at least in the current one (4.8) the example with the
createUser
class works the same if you change theinterface user
to betype user
instead:Link to TS Playground
thanks - this must be new since older versions don't allow for this - and I assumed it was still the case. I'll update the article