18 lines
373 B
JavaScript
18 lines
373 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) {
|
|
A.Origin = { x: 0, y: 0 };
|
|
})(A || (A = {}));
|