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
Namespaces are not really the way to go any more, babel doesn't support them, they probably aren't tree-shakeable etc. But I was hoping that the export * as ns syntax could be > used as a replacement, like this:
exporttypeFoobar=import('./Foobar').Foobar// Or:// export type { Foobar } from './Foobar'export*asFoobarfrom'./Foobar'
This seems to pass the nightly compiler, but the compiler only knows that Foobar is re-exported as a type, not a value. It would be great if the compiler could merge them into a combined value & type like with namespaces.
The text was updated successfully, but these errors were encountered:
rbuckton
changed the title
exported type merged with 'export * as namespace...' only exports type meaning.
Exported type merged with 'export * as namespace...' only exports type meaning.
Feb 13, 2020
Originally posted by @katis in #4813 (comment)
The text was updated successfully, but these errors were encountered: