mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
docs: fix vim.tbl_get type annotations #23992
This commit is contained in:
committed by
GitHub
parent
46fab3831b
commit
d3b9feccb3
@@ -2071,8 +2071,8 @@ tbl_get({o}, {...}) *vim.tbl_get()*
|
||||
|
||||
Parameters: ~
|
||||
• {o} (table) Table to index
|
||||
• {...} (string) Optional strings (0 or more, variadic) via which to
|
||||
index the table
|
||||
• {...} any Optional keys (0 or more, variadic) via which to index the
|
||||
table
|
||||
|
||||
Return: ~
|
||||
any Nested value indexed by key (if it exists), else nil
|
||||
|
||||
@@ -456,7 +456,7 @@ end
|
||||
--- </pre>
|
||||
---
|
||||
---@param o table Table to index
|
||||
---@param ... string Optional strings (0 or more, variadic) via which to index the table
|
||||
---@param ... any Optional keys (0 or more, variadic) via which to index the table
|
||||
---
|
||||
---@return any Nested value indexed by key (if it exists), else nil
|
||||
function vim.tbl_get(o, ...)
|
||||
|
||||
Reference in New Issue
Block a user