mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
docs: more accurate typing for vim.tbl_extend
This commit is contained in:

committed by
Lewis Russell

parent
47942db307
commit
09a919f313
@@ -402,7 +402,7 @@ end
|
||||
---
|
||||
---@see |extend()|
|
||||
---
|
||||
---@param behavior string Decides what to do if a key is found in more than one map:
|
||||
---@param behavior 'error'|'keep'|'force' Decides what to do if a key is found in more than one map:
|
||||
--- - "error": raise an error
|
||||
--- - "keep": use value from the leftmost map
|
||||
--- - "force": use value from the rightmost map
|
||||
@@ -418,7 +418,7 @@ end
|
||||
---
|
||||
---@generic T1: table
|
||||
---@generic T2: table
|
||||
---@param behavior "error"|"keep"|"force" (string) Decides what to do if a key is found in more than one map:
|
||||
---@param behavior 'error'|'keep'|'force' Decides what to do if a key is found in more than one map:
|
||||
--- - "error": raise an error
|
||||
--- - "keep": use value from the leftmost map
|
||||
--- - "force": use value from the rightmost map
|
||||
|
Reference in New Issue
Block a user