TypeScript/tests/cases/conformance/externalModules/umd3.ts

15 lines
303 B
TypeScript
Raw Normal View History

2016-03-02 19:52:16 +01:00
// @module: commonjs
// @noImplicitReferences: true
// @filename: foo.d.ts
export var x: number;
export function fn(): void;
export interface Thing { n: typeof x }
export as namespace Foo;
// @filename: a.ts
import * as Foo from './foo';
Foo.fn();
let x: Foo.Thing;
let y: number = x.n;