fix(diagnostic): typing

This commit is contained in:
Lewis Russell
2024-01-09 12:47:57 +00:00
committed by Lewis Russell
parent 91ba9d0bf4
commit 50284d07b6
4 changed files with 397 additions and 182 deletions

View File

@@ -14,8 +14,9 @@ local F = {}
--- assert(vim.F.if_nil(a, b, c, d) == 42)
--- ```
---
---@param ... any
---@return any
---@generic T
---@param ... T
---@return T
function F.if_nil(...)
local nargs = select('#', ...)
for i = 1, nargs do