Skip to content

Commit 6d1d680

Browse files
committed
Add test
1 parent 2ee93bf commit 6d1d680

File tree

1 file changed

+14
-0
lines changed
  • tests/cases/conformance/externalModules

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// @module: commonjs
2+
// @noImplicitReferences: true
3+
// @allowUmdGlobalAccess: true
4+
5+
// @filename: foo.d.ts
6+
declare class Thing {
7+
foo(): number;
8+
}
9+
export = Thing;
10+
export as namespace Foo;
11+
12+
// @filename: a.ts
13+
/// <reference path="foo.d.ts" />
14+
export const x = Foo; // OK in value position because allowUmdGlobalAccess: true

0 commit comments

Comments
 (0)