diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2024-04-18 10:46:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-18 10:46:09 +0800 |
commit | 0b2e8223883000278d584427919400f6a222b853 (patch) | |
tree | 3fdabc0f456f060cc39a5987babb275efe2d0fff | |
parent | 8966960a8a9188925c846404932811b212a38dae (diff) | |
parent | 526d9296f589c77ccde4ed9d39d560623ae0e7f0 (diff) | |
download | lua-language-server-0b2e8223883000278d584427919400f6a222b853.zip |
Merge pull request #2587 from lewis6991/unpack
meta: improve typing for unpack
-rw-r--r-- | meta/template/basic.lua | 7 |
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 |