We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I suspect this is out of scope for this proposal but based on my experience with namespaces in TypeScript its a DX I have come to appreciate a lot.
export namespace A { export const foo = 1 console.log(B.bar) } export namespace B { export const bar = 2 console.log(A.foo) } console.log(A.foo) console.log(B.bar)
export module A { export const foo = 1 import * as B from B console.log(B.bar) } export module B { export const bar = 2 import * as A from A console.log(A.foo) } import * as A from A import * as B from B console.log(A.foo) console.log(B.bar)
export module A { export const foo = 1 console.log(B.bar) } export module B { export const bar = 2 console.log(A.foo) } console.log(A.foo) console.log(B.bar)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I suspect this is out of scope for this proposal but based on my experience with namespaces in TypeScript its a DX I have come to appreciate a lot.
Example of TypeScript
Example with Inline Module Declarations (current)
Example with Inline Module Declarations (proposed)
The text was updated successfully, but these errors were encountered: