9c60d5a4d3
* Add tests * Dont look at object or function type when looking for members of `export=` type to be resolved by named imports Fixes #37165 * Create separate cache when skipping function and object property augmentation * Lookup in both cache if not skipObjectFunctionPropertyAugment
31 lines
427 B
Plaintext
31 lines
427 B
Plaintext
=== tests/cases/compiler/foo.d.ts ===
|
|
export = Foo;
|
|
>Foo : typeof Foo
|
|
|
|
export as namespace Foo;
|
|
>Foo : typeof Foo
|
|
|
|
declare namespace Foo {
|
|
>Foo : typeof Foo
|
|
|
|
function foo();
|
|
>foo : () => any
|
|
}
|
|
|
|
declare global {
|
|
>global : any
|
|
|
|
namespace Bar { }
|
|
}
|
|
|
|
=== tests/cases/compiler/bar.d.ts ===
|
|
import { Bar } from './foo';
|
|
>Bar : any
|
|
|
|
export = Bar;
|
|
>Bar : any
|
|
|
|
export as namespace Bar;
|
|
>Bar : any
|
|
|