summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-04-18 10:46:09 +0800
committerGitHub <noreply@github.com>2024-04-18 10:46:09 +0800
commit0b2e8223883000278d584427919400f6a222b853 (patch)
tree3fdabc0f456f060cc39a5987babb275efe2d0fff
parent8966960a8a9188925c846404932811b212a38dae (diff)
parent526d9296f589c77ccde4ed9d39d560623ae0e7f0 (diff)
downloadlua-language-server-0b2e8223883000278d584427919400f6a222b853.zip
Merge pull request #2587 from lewis6991/unpack
meta: improve typing for unpack
-rw-r--r--meta/template/basic.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/template/basic.lua b/meta/template/basic.lua
index 4a9360fd..75cd1dee 100644
--- a/meta/template/basic.lua
+++ b/meta/template/basic.lua
@@ -339,3 +339,10 @@ function xpcall(f, msgh, arg1, ...) end
---@return T ...
---@nodiscard
function unpack(list, i, j) end
+
+---@version 5.1
+---@generic T1, T2, T3, T4, T5, T6, T7, T8, T9
+---@param list {[1]: T1, [2]: T2, [3]: T3, [4]: T4, [5]: T5, [6]: T6, [7]: T7, [8]: T8, [9]: T9 }
+---@return T1, T2, T3, T4, T5, T6, T7, T8, T9
+---@nodiscard
+function unpack(list) end