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

Declaration merging issues with ambient modules #6595

Closed
andrew-w-ross opened this issue Jan 24, 2016 · 4 comments
Closed

Declaration merging issues with ambient modules #6595

andrew-w-ross opened this issue Jan 24, 2016 · 4 comments
Labels
Question An issue which isn't directly actionable in code

Comments

@andrew-w-ross
Copy link

Hi I'm having a problem with writing ambient modules with declaration merging for the typings project (typings/typings#119).

I am trying to write decleration files for the expect-jsx library. I've previously written the expect declarations and have written the expect-jsx declarations. When I try to use these definitions the decleration merging fails unless I add a reference path to the module I want to merge with directly in the module. Does an ambient module have to have a direct reference to the module it's merging with? Isn't it enough to have both declerations referenced by another file? Is this expected behaviour or a bug?

Thanks In Advance

@ahejlsberg
Copy link
Member

See #4166.

@RyanCavanaugh RyanCavanaugh added the Question An issue which isn't directly actionable in code label Jan 25, 2016
@andrew-w-ross
Copy link
Author

@ahejlsberg Just one question will this work if I use the nightly build?

@mhegazy
Copy link
Contributor

mhegazy commented Jan 26, 2016

@andrew-w-ross
Copy link
Author

@mhegazy Thanks a lot.

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Question An issue which isn't directly actionable in code
Projects
None yet
Development

No branches or pull requests

4 participants