commit 191cca2566a8afe2b2f2744f3eb763d810cc416c
parent 85b13751a5fc28fadbe74d72982325ca27b4c775
Author: Will Hopkins <willothyh@gmail.com>
Date: Sat, 2 Mar 2024 14:39:25 -0800
fix(types): move type annotation for `IterMod`
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/runtime/lua/vim/iter.lua b/runtime/lua/vim/iter.lua
@@ -1140,9 +1140,8 @@ function M.map(f, src, ...)
return Iter.new(src, ...):map(f):totable()
end
----@type IterMod
return setmetatable(M, {
__call = function(_, ...)
return Iter.new(...)
end,
-})
+}) --[[@as IterMod]]