mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-26 06:34:20 +08:00
12 lines
210 B
TypeScript
12 lines
210 B
TypeScript
export interface Point {
|
|
x: number;
|
|
y: number;
|
|
}
|
|
export function makePoint(x: number, y: number): Point {
|
|
return { x, y };
|
|
}
|
|
export let made: number = 0;
|
|
export function noteMade(): void {
|
|
made += 1;
|
|
}
|