Skip to content

Automatic imports are not showing in some cases #21143

@alexrock

Description

@alexrock

TypeScript Version: 2.7.0-dev.20180111

I am still having problems here.

Code

b.d.ts

declare namespace N {
	export const xxx: number
}

declare module 'n' {
	export = N
}

c.d.ts

declare namespace N.O {
	export const yyy: number
}

declare module 'n-o' {
	export = N.O
}

a.ts

xx/**/ // fail
yy/**/ // ok

Joining these definition files in just one file, everything works fine.

Related:
#20951

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions