2014-07-13 01:04:16 +02:00
|
|
|
//// [ExportVariableWithAccessibleTypeInTypeAnnotation.ts]
|
|
|
|
module A {
|
|
|
|
|
|
|
|
export interface Point {
|
|
|
|
x: number;
|
|
|
|
y: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
// valid since Point is exported
|
|
|
|
export var Origin: Point = { x: 0, y: 0 };
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// [ExportVariableWithAccessibleTypeInTypeAnnotation.js]
|
|
|
|
var A;
|
|
|
|
(function (A) {
|
2014-08-12 00:54:12 +02:00
|
|
|
// valid since Point is exported
|
2015-03-09 02:23:23 +01:00
|
|
|
A.Origin = {
|
|
|
|
x: 0,
|
|
|
|
y: 0
|
|
|
|
};
|
2014-07-13 01:04:16 +02:00
|
|
|
})(A || (A = {}));
|