Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit 9dad0f5

Browse files
committed
fix(server): type fixes
1 parent 11a5467 commit 9dad0f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ end
9696
---@param invType string
9797
---@param data? string|number|table
9898
---@param ignoreSecurityChecks boolean?
99-
---@return boolean|table|nil
100-
---@return table?
99+
---@return table | false | nil, table | false | nil, string?
101100
local function openInventory(source, invType, data, ignoreSecurityChecks)
102101
if Inventory.Lock then return false end
103102

@@ -141,6 +140,7 @@ local function openInventory(source, invType, data, ignoreSecurityChecks)
141140
right = Inventory(('evidence-%s'):format(data))
142141
end
143142
elseif invType == 'dumpster' then
143+
---@cast data string
144144
right = Inventory(data)
145145

146146
if not right then

0 commit comments

Comments
 (0)