mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-11 01:34:55 -06:00
Add test
This commit is contained in:
parent
2ee93bf0f2
commit
6d1d680c0e
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
|
||||
Loading…
x
Reference in New Issue
Block a user