mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-10 18:04:18 -05:00
Add test
This commit is contained in:
14
tests/cases/conformance/externalModules/umd9.ts
Normal file
14
tests/cases/conformance/externalModules/umd9.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
// @module: commonjs
|
||||
// @noImplicitReferences: true
|
||||
// @allowUmdGlobalAccess: true
|
||||
|
||||
// @filename: foo.d.ts
|
||||
declare class Thing {
|
||||
foo(): number;
|
||||
}
|
||||
export = Thing;
|
||||
export as namespace Foo;
|
||||
|
||||
// @filename: a.ts
|
||||
/// <reference path="foo.d.ts" />
|
||||
export const x = Foo; // OK in value position because allowUmdGlobalAccess: true
|
||||
Reference in New Issue
Block a user