What is the difference in TypeScript between export and default export? In all the tutorials, I see people exporting their classes and I cannot compile my code if I don't add the default keyword before exporting. Also, I couldn't find any trace of the default export keyword in the official TypeScript documentation. export class MyClass { collection = [1,2,3]; } Does not compile. But: export defaul
![TypeScript export vs. default export](https://cdn-ak-scissors.b.st-hatena.com/image/square/98d6f053a97a87156775f60757c60865d0f2c47d/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fstackoverflow%2FImg%2Fapple-touch-icon%402.png%3Fv%3D73d79a89bded)