Open KlutzyBubbles opened 8 months ago
When run in game it does nothing unless the local in front of the onLoad function is removed.
Ahh, that in particular seems like a bug. These type definitions were painstakingly manually written, so it is likely that is just a mistake.
I'll take a look at your PR in a few.
Any update on this? I have the same issue.
Any update on this? I have the same issue.
The local is a side effect from typescript-to-lua
see https://github.com/KlutzyBubbles/tts-typescript-template?tab=readme-ov-file#global-functions for a workaround.
Tried from the readme and it produces
When run in game it does nothing unless the
local
in front of theonLoad
function is removed.Curious to whether you ran into this issue or if there are any solutions, currently i have just modified TypeScriptToLua to output all functions without local however i dont think this would be a viable option long term.