Download .ts

Download As from the toolbar.

Use Download As on the toolbar.

Goal

Log a one-file summary.

@external("env", "log")
declare function log(n: i32): void;

@external("env", "logStr")
declare function logStr(s: string): void;

export function main(): void {
  log(12 + 5);
  logStr("download from the toolbar");
}
@external("env", "log")
declare function log(n: i32): void;

@external("env", "logStr")
declare function logStr(s: string): void;

export function main(): void {
  log(1);
}