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 }}
Repository navigation
Cannot export a value if re-exporting a type with same name #42633
I think this is working as intended. Import/export aliases can't merge with local declarations in TypeScript. What's more, export type doesn't strictly import the type side of things, it only restricts the things you can do with that import to type-like positions, so even if we wanted to ease the restriction just for export type, we still couldn't.
Activity
DanielRosenwasser commentedon Feb 4, 2021
I think this is working as intended. Import/export aliases can't merge with local declarations in TypeScript. What's more,
export typedoesn't strictly import the type side of things, it only restricts the things you can do with that import to type-like positions, so even if we wanted to ease the restriction just forexport type, we still couldn't.See
paul-marechal commentedon Feb 4, 2021
Should this limitation on merging behavior be documented in the appropriate section of the official documentation?
typescript-bot commentedon Feb 7, 2021
This issue has been marked 'Working as Intended' and has seen no recent activity. It has been automatically closed for house-keeping purposes.