Skip to content

Commit eeb90e3

Browse files
authored
Merge pull request EmmyLuaLs#1023 from EfveZombie/fix.table_pack_return_type
fix: use intersection type for table.pack return type
2 parents 9f97f8c + 6f07707 commit eeb90e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • crates/emmylua_code_analysis/resources/std

crates/emmylua_code_analysis/resources/std/table.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function table.unpack(list, i, j) end
119119
---
120120
---@generic T
121121
---@param ... T...
122-
---@return [T...] | { n: integer }
122+
---@return [T...] & { n: integer }
123123
---@nodiscard
124124
function table.pack(...) end
125125

0 commit comments

Comments
 (0)