mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
docs(iter): add emmylua type to iter module (#23845)
This commit is contained in:

committed by
GitHub

parent
a8ee4c7a81
commit
c65e2203f7
@@ -51,6 +51,8 @@
|
||||
--- In addition to the |vim.iter()| function, the |vim.iter| module provides
|
||||
--- convenience functions like |vim.iter.filter()| and |vim.iter.totable()|.
|
||||
|
||||
---@class IterMod
|
||||
---@operator call:Iter
|
||||
local M = {}
|
||||
|
||||
---@class Iter
|
||||
@@ -974,6 +976,7 @@ function M.map(f, src, ...)
|
||||
return Iter.new(src, ...):map(f):totable()
|
||||
end
|
||||
|
||||
---@type IterMod
|
||||
return setmetatable(M, {
|
||||
__call = function(_, ...)
|
||||
return Iter.new(...)
|
||||
|
Reference in New Issue
Block a user