Is this true of Luau as well, which is the dialect used here? Or are you talking about just Lua (which doesn't have a type checker at all) or LuaLS?
I'd check for myself but Luau's web demo seems to lack the most important feature of their dialect, type checking.