mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
docs: more accurate typing for vim.tbl_extend
This commit is contained in:
parent
47942db307
commit
09a919f313
@ -2190,8 +2190,8 @@ vim.tbl_deep_extend({behavior}, {...}) *vim.tbl_deep_extend()*
|
||||
Merges recursively two or more tables.
|
||||
|
||||
Parameters: ~
|
||||
• {behavior} (`"error"|"keep"|"force"`) (string) Decides what to do if
|
||||
a key is found in more than one map:
|
||||
• {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
|
||||
@ -2207,8 +2207,8 @@ vim.tbl_extend({behavior}, {...}) *vim.tbl_extend()*
|
||||
Merges two or more tables.
|
||||
|
||||
Parameters: ~
|
||||
• {behavior} (`string`) Decides what to do if a key is found in more
|
||||
than one map:
|
||||
• {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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user