Repository navigation
Conversation
|
My apologies, I did not see the discussion before opening this PR I understand the issue can only be fixed by the Typescript team reworking the syntax of declaration files: allowing external modules declarations to be created by importing internal modules without exposing the internal module name. Yet, I am not sure I support the decision to not go with the crowd by splitting the definitions in two files in the meantime. This adds to the general confusion between libraries definitions and makes things a lot harder (including for our IDE) just to allow writing In summary, I believe this is a flaw in the definition files that must be fixed by the Typescript team, and not by implementing non recommended temporary workarounds like this one. Yet, feel free to close and disregard this PR |
|
As a matter of fact IntelliJ 14.1 auto-completion works much better with two separate files... (at least the scenario of the external module definition with CommonJS modules) |
Make ambient module declarations consistent with other major modules (JQuery, lodash, etc…)
Having an Ambient Module Declaration of React makes React easier to extend