Files
scriptc/tests/corpus/954-modules-reexport/base.ts
T
2026-07-22 18:08:04 -05:00

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}`;
}