TypeScript/tests/baselines/reference/ExportVariableWithAccessibleTypeInTypeAnnotation.js

20 lines
411 B
TypeScript

//// [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) {
// valid since Point is exported
A.Origin = { x: 0, y: 0 };
})(A || (A = {}));