summaryrefslogtreecommitdiff
path: root/meta/template
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-03-30 02:53:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-03-30 02:53:15 +0800
commit19e1709f0d53975fa0e752cb64c0c47e3c48bedf (patch)
treec0d76532499682ab3d57da6c83229c3fd21270de /meta/template
parent635b266a9188cf87ae856a21308347c113c52250 (diff)
downloadlua-language-server-19e1709f0d53975fa0e752cb64c0c47e3c48bedf.zip
update
Diffstat (limited to 'meta/template')
-rw-r--r--meta/template/basic.lua4
-rw-r--r--meta/template/table.lua4
2 files changed, 6 insertions, 2 deletions
diff --git a/meta/template/basic.lua b/meta/template/basic.lua
index 980b3dc1..31b10bd1 100644
--- a/meta/template/basic.lua
+++ b/meta/template/basic.lua
@@ -274,8 +274,10 @@ function xpcall(f, msgh, arg1, ...) end
---@version 5.1
---#DES 'unpack'
----@param list table
+---@generic T
+---@param list T[]
---@param i? integer
---@param j? integer
+---@return T
---@nodiscard
function unpack(list, i, j) end
diff --git a/meta/template/table.lua b/meta/template/table.lua
index c55c3160..3ec92ce8 100644
--- a/meta/template/table.lua
+++ b/meta/template/table.lua
@@ -56,9 +56,11 @@ function table.sort(list, comp) end
---@version >5.2, JIT
---#DES 'table.unpack'
----@param list table
+---@generic T
+---@param list T[]
---@param i? integer
---@param j? integer
+---@return T
---@nodiscard
function table.unpack(list, i, j) end