Enable stricter type checks

This commit is contained in:
Cooldude2606
2024-11-21 00:03:19 +00:00
parent 51c9356ecc
commit 99ab54da0a
11 changed files with 67 additions and 37 deletions

View File

@@ -9,6 +9,10 @@ local tonumber = tonumber
local pairs = pairs
local table_size = table_size
--- @generic T: table
--- @type fun(table: T, metatable?: table|metatable): T
setmetatable = setmetatable
--- Adds all keys of the source table to destination table as a shallow copy
--- @generic K, V
--- @param dst table<K, V> Table to insert into

View File

@@ -394,6 +394,8 @@ end
--- @field surface LuaSurface The surface to search for targets on
--- @field allow_creation boolean? If new entities can be create to store the items
--- @field cache Common.get_or_create_storage_cache? Internal search cache passed between subsequent calls
--- @field name? EntityID Entity to be created if allow_creation is true
--- @field force? ForceID Force of the created entity, defaults to 'neutral'
--- Find, or optionally create, a storage entity which a stack can be inserted into
--- @param options Common.get_or_create_storage_param