mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +01:00
refactor(array): add generic to class type
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
---@class Array : OxClass
|
---@class Array<T> : OxClass, { [number]: T }
|
||||||
lib.array = lib.class('Array')
|
lib.array = lib.class('Array')
|
||||||
|
|
||||||
local table_unpack = table.unpack
|
local table_unpack = table.unpack
|
||||||
@@ -7,7 +7,6 @@ local table_clone = table.clone
|
|||||||
local table_concat = table.concat
|
local table_concat = table.concat
|
||||||
local table_type = table.type
|
local table_type = table.type
|
||||||
|
|
||||||
|
|
||||||
---@alias ArrayLike<T> Array | { [number]: T }
|
---@alias ArrayLike<T> Array | { [number]: T }
|
||||||
|
|
||||||
---@private
|
---@private
|
||||||
|
|||||||
Reference in New Issue
Block a user