Skip to content

Declaration merging issues with ambient modules #6595

Closed
@andrew-w-ross

Description

@andrew-w-ross

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions