This commit is contained in:
Andrew Branch 2019-04-05 10:50:53 -07:00
parent 2ee93bf0f2
commit 6d1d680c0e
No known key found for this signature in database
GPG Key ID: 22CCA4B120C427D2

View 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