mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-28 06:53:42 +08:00
14 lines
296 B
TypeScript
14 lines
296 B
TypeScript
// The origin module: a mutable export (live-binding check through the
|
|
// re-export hops) and side-effecting init.
|
|
console.log("base init");
|
|
|
|
export let counter = 0;
|
|
|
|
export function inc(): void {
|
|
counter = counter + 1;
|
|
}
|
|
|
|
export function greet(name: string): string {
|
|
return `hi ${name}`;
|
|
}
|