-
-
Notifications
You must be signed in to change notification settings - Fork 672
Closed
Labels
Description
Currently, execution of top level statements can be delayed until a custom start function is called with
@start export function myStart(): void {}
It has recently been suggested to also provide a compiler flag doing this, essentially marking a function as the entry function using the command line. This could look like:
asc ... --start myLib/myStart
with either
// myLib.ts
function myStart(): void {}
becoming the function kicking off top-level statements, or alternatively generating a function of that name if it isn't present.
jedisct1