This change emits more types. In particular: * Previously, only primitive types got emitted, yielding "any" for any custom types. Now we emit custom types, including fully qualified module names for type references resolving to imported modules. * Prior to this change, we erroneously used the type node on the function declaration itself as an approximation for return type. To get the true return type, we need to dig through a few nodes, including the Declaration and Signature. This change now properly emits return types. This doesn't close out marapongo/mu#46, however we are getting close. |
||
---|---|---|
.. | ||
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.