Egor Gorbachev
@alteregor
8 posts
typescript

The difference between type and interface in TypeScript

Type and interface in TypeScript often confuse people because they look similar on the surface. The situation gets worse with outdated articles, biased comparisons, and style guides from some frameworks. For example, Angular has the tslint rule interface-over-type-literal enabled by default, which forces you to use interfaces instead of types wherever possible. In this article, we'll look at the difference between type and interface in TypeScript and figure out what you should actually use.

Reasons to avoid default exports in JavaScript

Why named exports should be used instead of default exports in JavaScript