refactor(lua): deprecate tbl_flatten #28457

forgot some changes in 9912a4c81b
This commit is contained in:
Justin M. Keyes
2024-04-22 04:27:57 -07:00
committed by GitHub
parent 2cbfa4b9af
commit 013afc6863
3 changed files with 3 additions and 0 deletions

View File

@@ -553,6 +553,7 @@ end
---@param t table List-like table
---@return table Flattened copy of the given list-like table
function vim.tbl_flatten(t)
vim.deprecate('vim.tbl_flatten', 'vim.iter(…):flatten():totable()', '0.12')
local result = {}
--- @param _t table<any,any>
local function _tbl_flatten(_t)