mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-05 08:13:06 +08:00
8 lines
309 B
TypeScript
8 lines
309 B
TypeScript
export function greet(name: string): string { return "hi " + name; }
|
|
export function add(a: number, b: number): number { return a + b; }
|
|
export const answer = 42;
|
|
export const config = { tool: "scriptc", version: 3 };
|
|
export const list = [1, 2, 3];
|
|
export default "the-default";
|
|
console.log("mod evaluated");
|