2014-07-13 01:04:16 +02:00
|
|
|
//// [tests/cases/conformance/externalModules/exportAssignmentMergedInterface.ts] ////
|
|
|
|
|
|
|
|
//// [foo_0.ts]
|
|
|
|
interface Foo {
|
|
|
|
(a: string): void;
|
|
|
|
b: string;
|
|
|
|
}
|
|
|
|
interface Foo {
|
|
|
|
(a: number): number;
|
|
|
|
c: boolean;
|
|
|
|
d: {x: number; y: number};
|
|
|
|
}
|
|
|
|
export = Foo;
|
|
|
|
|
|
|
|
//// [foo_1.ts]
|
|
|
|
import foo = require("./foo_0");
|
|
|
|
var x: foo;
|
|
|
|
x("test");
|
|
|
|
x(42);
|
|
|
|
var y: string = x.b;
|
|
|
|
if(!!x.c){ }
|
|
|
|
var z = {x: 1, y: 2};
|
|
|
|
z = x.d;
|
|
|
|
|
|
|
|
//// [foo_0.js]
|
|
|
|
define(["require", "exports"], function (require, exports) {
|
|
|
|
});
|
|
|
|
//// [foo_1.js]
|
|
|
|
define(["require", "exports"], function (require, exports) {
|
|
|
|
var x;
|
|
|
|
x("test");
|
|
|
|
x(42);
|
|
|
|
var y = x.b;
|
2015-02-07 03:45:09 +01:00
|
|
|
if (!!x.c) { }
|
2014-07-13 01:04:16 +02:00
|
|
|
var z = { x: 1, y: 2 };
|
|
|
|
z = x.d;
|
|
|
|
});
|