You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
Challenge
Both myself and my team have experienced some confusion around choosing between named exports and default exports.
On the one hand, official documentation suggests favoring export default.
The TypeScript handbook's page on Modules states:
One conclusion of the ES Discuss module import topic is that:
On the other hand, prominent projects in the community favor a named export.
The TypeScript Deep Dive book has a page entitled "Avoid export default".
Angular makes heavy use of *.ts files that have a single export class or a single export function, which is in contrast with one of the red flags in the TypeScript handbook's page on Modules.
Suggestion
Create a new page in the handbook that focuses on choosing between a named and a default export.