typescript-to-lua
Advanced tools
Changelog
1.4.0
beforeTransform
and afterPrint
"always"
option for the "lualibImport"
tsconfig key.Math.sign
^
instead of math.pow
, the latter was deprecated in 5.3null
or undefined
in tuples, as that is undefined behavior in the Lua spec and causes unexpected behaviorextension
, allowing to specify a different output file extensionfunction.apply(context)
breaking the transpiler if called with only one parameterx ? y : z
) leading to incorrect codeChangelog
1.3.0
LuaPairsIterable
language extension to mark objects as iterable with Lua's pairs
."luaTarget": "JIT"
.try
statements.??
and ? :
when generic types were involved....
optimization in cases where casts or parentheses are used.Promise
when resolving with another Promise. This also fixes some unexpected behavior with async
which is built with Promises.async
functions not aborting after returning from a catch
block.