mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 00:23:10 +03:00
12 lines
278 B
TypeScript
12 lines
278 B
TypeScript
|
// @filename: module.d.ts
|
||
|
declare module Point {
|
||
|
export var Origin: { x: number; y: number; }
|
||
|
}
|
||
|
|
||
|
// @filename: function.d.ts
|
||
|
declare function Point(): { x: number; y: number; }
|
||
|
|
||
|
// @filename: test.ts
|
||
|
var cl: { x: number; y: number; }
|
||
|
var cl = Point();
|
||
|
var cl = Point.Origin;
|