Basing off of the example in the readme:
function test() {
return 10;
}
const value = $dbg(test());
local function test()
return 10
end
local value = (function(value)
print("[source.ts:4] test() =", value)
return value
end)(test())
will be wrong if test returns a LuaTuple, only catching the first element of it. This should be easy to change, albeit with a performance hit, by using ...values.
Basing off of the example in the readme:
will be wrong if
testreturns a LuaTuple, only catching the first element of it. This should be easy to change, albeit with a performance hit, by using...values.