20 lines
411 B
JavaScript
20 lines
411 B
JavaScript
//// [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 = {}));
|