4 lines
132 B
TypeScript
4 lines
132 B
TypeScript
|
export interface Point { x: number; y: number; };
|
||
|
export function point (x: number, y: number): Point {
|
||
|
return { x: x, y: y };
|
||
|
}
|