mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 04:21:41 +09:00
Enable stricter type checks
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user