Cross-posted from here: LuaLS/lua-language-server#2316
Basically, with LuaLS 3.7.0, this throws a warning.
local love = require("love")
function love.load() -- Fields cannot be injected into the reference of `love` for `load`. To do so, use `---@class` for `love`. (inject-field)
end
I expect the love.load declaration to have no issues.
Cross-posted from here: LuaLS/lua-language-server#2316
Basically, with LuaLS 3.7.0, this throws a warning.
I expect the
love.load
declaration to have no issues.