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