Skip to content

Commit

Permalink
Merge pull request #2587 from lewis6991/unpack
Browse files Browse the repository at this point in the history
meta: improve typing for unpack
  • Loading branch information
sumneko authored Apr 18, 2024
2 parents 8966960 + 526d929 commit 0b2e822
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions meta/template/basic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0b2e822

Please sign in to comment.