Skip to content

Commit

Permalink
Merge pull request #4576 from vallode/misc-types
Browse files Browse the repository at this point in the history
Fix _ENV typing for mkmodule
  • Loading branch information
myk002 authored May 9, 2024
2 parents a731f1b + 00aa67a commit 4b20330
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/lua/dfhack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ end
---@nodiscard
---@param module string
---@param env? table|metatable
---@return table pkg
---@return _G pkg
function mkmodule(module,env)
-- Verify that the module name is correct
local _, rq_modname = find_required_module_arg()
Expand Down Expand Up @@ -199,6 +199,7 @@ function rawset_default(target,source)
end
end

---@type any
DEFAULT_NIL = DEFAULT_NIL or {} -- Unique token

---@generic T: table
Expand Down

0 comments on commit 4b20330

Please sign in to comment.