mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-31 07:23:06 +08:00
9 lines
299 B
TypeScript
9 lines
299 B
TypeScript
// Anonymous default exports: the declaration has no name, but the checker
|
|
// still has its symbol (the module's default export), so imports resolve
|
|
// like any named binding.
|
|
import add from "./adder.ts";
|
|
import AnonBox from "./box.ts";
|
|
|
|
console.log(add(20, 22));
|
|
console.log(new AnonBox().tag());
|