mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-24 06:14:01 +08:00
26 lines
344 B
TypeScript
26 lines
344 B
TypeScript
export let count = 0;
|
|
|
|
export function bump(): void {
|
|
count += 1;
|
|
}
|
|
|
|
export function label(): string {
|
|
return "module-label";
|
|
}
|
|
|
|
export class Box {
|
|
private readonly n: number;
|
|
|
|
constructor(n: number) {
|
|
this.n = n;
|
|
}
|
|
|
|
value(): number {
|
|
return this.n;
|
|
}
|
|
}
|
|
|
|
export default "module-default";
|
|
|
|
console.log("module evaluated");
|