Managing ambient type definitions and dealing with the "Duplicate identifier" TypeScript error

1 · Minko Gechev · March 28, 2016, midnight
Maintaining the angular-seed, I found out that the most common problem for developers using the project is: Duplicate identifier 'export='. (2300) compilation error. In this quick tutorial I’ll show what does this error mean and how you can fix it. In order to get better understanding of the problem we’ll discuss the differences between TypeScript and JavaScript, as well as ambient type definitions and @types. Intro Before getting any further we need to tell a few words about the ambient type de...