-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add declare namespace #1
Conversation
palantir/tslint#1016 (comment) After the change, I can do Any idea? |
If you can do |
Interesting. I do see it is working like you said. Will file an issue on |
I don't intend to support this, it's a hack and not valid ES6. |
Argee to your direction. For reference, currently the only way to import this library in ES6 syntax is either:
and Thus connects to microsoft/TypeScript#7398 |
@unional Sorry that previous post was a little brief/harsh, I know we've had the discussion before 😄 I don't think we should be forcing non-ES6 imports into an ES6 syntax, it's just not possible unless TypeScript intends to emit the correct transformations at the JavaScript level (E.g. emit |
It's all good. I said in the past that I was trying to setup the environment / framework in my company and one thing I tried to avoid is forcing them to understand and use both But as you know we discover the issue of the interop and today I'm "officially" abandoning that idea: https://github.com/unional/typescript/blob/master/style-guide/default/modules.md#import-keyword 🌷 |
This allows user to use the
import * as Promise from 'any-promise';