Types in TypeScript can be defined by both type and Interface aliases. They have many similarities and in many cases, they can be used interchangeably. But engineers like conventions and rules, which one should we stick to? Before digging into why you might want to use one or other, let's quickly discuss the difference between type and interface. Most of the time, an object type can be similarly…