-
-
Notifications
You must be signed in to change notification settings - Fork 676
Closed
Description
I found that sometimes it is useful to store pure typescript and assemblyscript in one file. Of course this feature can be implemented in custom plugin for your bundler but you will depend on exact bundler (rollup/webpack/parcel/esbuild). So here a form that will be legit typescript superset.
//@as-if
//type float = f64;
//type int = i32;
//@as-else
type float = number;
type int = number;
let max = Math.max;
//@as-endif
One can implement this plugin right now. But this preprocessor can be a part of AS itself. What do you think?