Skip to content
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

Provide a way to export modules #2

Open
j2jensen opened this issue Aug 12, 2016 · 1 comment
Open

Provide a way to export modules #2

j2jensen opened this issue Aug 12, 2016 · 1 comment

Comments

@j2jensen
Copy link

Now that EcmaScript has modules, the more accepted way to organize types is via the export/import keywords. Typescript's "internal modules" have been renamed to "namespaces"

In order to support EcmaScript-style imports, there needs to be a way to cause the generated TypeScript to add an export keyword before each of its declared modules. Perhaps this could be done with a specific command-line flag or something.

You might also consider changing the module keyword to the now-preferred namespace keyword as well.

@drogars
Copy link
Contributor

drogars commented Aug 18, 2016

Interesting ideas. We never really considered what features were available in ES6, because we only really cared about getting it into TypeScript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants