There probably shouldn't be a table.unpack when you cast parameters to any[] (or another array type). For instance:
https://typescripttolua.github.io/play/#code/FDBmFcDsGMBcEsD2kAEoCGMCeBhdAbfAHgDEUBTAD1nMgBMBnFACgDp30AnAcwYC4UmLAEoAvAD4h45hBgCSAGhTtWXXgIAKXdAFtyNTg1LjhAgEr7wnSABUsAB3LGA3sBTuUnS9bRRobdmY1JnQQyCwAbQBdYWFgAF8gA
Current workaround: make the function definition an overload and the implementation take any[] type as parameters
There probably shouldn't be a table.unpack when you cast parameters to any[] (or another array type). For instance:
https://typescripttolua.github.io/play/#code/FDBmFcDsGMBcEsD2kAEoCGMCeBhdAbfAHgDEUBTAD1nMgBMBnFACgDp30AnAcwYC4UmLAEoAvAD4h45hBgCSAGhTtWXXgIAKXdAFtyNTg1LjhAgEr7wnSABUsAB3LGA3sBTuUnS9bRRobdmY1JnQQyCwAbQBdYWFgAF8gA
Current workaround: make the function definition an overload and the implementation take
any[]type as parameters