docs: more accurate typing for vim.tbl_extend

This commit is contained in:
Riley Bruins
2023-12-30 21:08:07 -08:00
committed by Lewis Russell
parent 47942db307
commit 09a919f313
2 changed files with 6 additions and 6 deletions

View File

@@ -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