mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
refactor(import/disableControls): add missing lua typings (#231)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
--- ```
|
||||
local disableControls = {}
|
||||
|
||||
---@param ... number
|
||||
---@param ... number | table
|
||||
function disableControls:Add(...)
|
||||
local keys = type(...) == 'table' and ... or {...}
|
||||
for i=1, #keys do
|
||||
@@ -17,7 +17,7 @@ function disableControls:Add(...)
|
||||
end
|
||||
end
|
||||
|
||||
---@param ... number
|
||||
---@param ... number | table
|
||||
function disableControls:Remove(...)
|
||||
local keys = type(...) == 'table' and ... or {...}
|
||||
for i=1, #keys do
|
||||
@@ -31,7 +31,7 @@ function disableControls:Remove(...)
|
||||
end
|
||||
end
|
||||
|
||||
---@param ... number
|
||||
---@param ... number | table
|
||||
function disableControls:Clear(...)
|
||||
local keys = type(...) == 'table' and ... or {...}
|
||||
for i=1, #keys do
|
||||
@@ -53,4 +53,4 @@ lib.disableControls = setmetatable(disableControls, {
|
||||
end
|
||||
})
|
||||
|
||||
return lib.disableControls
|
||||
return lib.disableControls
|
||||
|
||||
Reference in New Issue
Block a user