TypeScript type aliases simply turn into MuIL classes with the base class being the aliased type. In theory, MuIL conversions will support the kind of conversions offered by aliases (or at least get sufficiently close). We will need to tackle this in part by marapongo/mu#46. In addition, while I was in there, I cleaned up the type token emission to emit "any" (rather than "TODO") and to use a single, central function for all ts.TypeNodes. This will also get cleaned up by marapongo/mu#46. |
||
---|---|---|
.. | ||
cmd | ||
lib | ||
tests | ||
.gitignore | ||
mujs | ||
package.json | ||
README.md | ||
tsconfig.json | ||
tslint.json | ||
yarn.lock |
MuJS
This directory contains Mu's JavaScript compiler.
It implements a subset of JavaScript with TypeScript-style type annotations, and can compile that subset into MuPack/IL.