-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow "export as namespace" in non-declaration files #9678
Comments
so what would the emitted code be? |
the emitted code would be none: |
mmm.. that is not what i would expect from a declaration like that in a .ts file. for instance |
what about if the emitted code is a publishing into globals as per your suggestion in #8436 ? |
yup. that is what i had in mind, though i forgot about that other comment :) |
closing as discussion merges with #8436 |
According to #7125, the new
export as namespace
Now this is a nuisance for library authors that are generating declarations via the
--declaration
flag, because everytime there's a recompile,.d.ts
are rewritten and theexport as namespace
typed previously is gone.What about if
export as namespace
could be written in the actual code and exported in the generated.d.ts
file? E.g.:myreact.ts
:(generated)
myreact.d.ts
:The text was updated successfully, but these errors were encountered: