mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +03:00
14 lines
272 B
TypeScript
14 lines
272 B
TypeScript
|
// @filename: module.d.ts
|
||
|
declare module Point {
|
||
|
export var Origin: { x: number; y: number; }
|
||
|
}
|
||
|
|
||
|
// @filename: function.ts
|
||
|
function Point() {
|
||
|
return { x: 0, y: 0 };
|
||
|
}
|
||
|
|
||
|
// @filename: test.ts
|
||
|
var cl: { x: number; y: number; }
|
||
|
var cl = Point();
|
||
|
var cl = Point.Origin;
|