Automatically generate TypeScript definition files for generated globals in Warcraft III maps using Lua.