This repository was archived by the owner on Dec 12, 2023. It is now read-only.
v0.4.0
Experimental TypeScript Definition Support
The 0.4.0 release of Lucy includes support for producing TypeScript definitions (.d.ts files) behind a flag. You can use it like so:
lucyc --out-file out.js --experimental-dts input.lucyThis will produce another file, out.d.ts alongside the JavaScript. This feature works with --out-file and --out-dir.
TypeScript definition support is available only through the Lucy CLI and bugs are to be expected. The plan is to bring stability to this feature and eventually drop the flag in favor of producing DTS by default.
Also added is a flag --print to specify what is printed to stdout. The value can be either js or dts. This flag is to be used when not using either --out-file or --out-dir.
lucyc --print dts input.lucy