aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-01-23 00:53:15 +0000
committerLewis Russell <me@lewisr.dev>2024-01-23 11:45:17 +0000
commit0054c185001e54316c0ee36841dfe111878a321d (patch)
tree130ca3d01fb73443c9ac9fabd93e8182a1cf0634 /test/functional/helpers.lua
parent89ffdebd20fd1d9c1ceff5fb005db11a0cf8c4d4 (diff)
downloadrneovim-0054c185001e54316c0ee36841dfe111878a321d.tar.gz
rneovim-0054c185001e54316c0ee36841dfe111878a321d.tar.bz2
rneovim-0054c185001e54316c0ee36841dfe111878a321d.zip
test: typing for screen.lua
Very rough buts resolves most diagnostic errors and should provide some useful hovers.
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index 159016b484..553b8637db 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -251,9 +251,9 @@ function module.set_method_error(err)
end
--- @param lsession test.Session
---- @param request_cb function
---- @param notification_cb function
---- @param setup_cb function
+--- @param request_cb function?
+--- @param notification_cb function?
+--- @param setup_cb function?
--- @param timeout integer
--- @return {[1]: integer, [2]: string}
function module.run_session(lsession, request_cb, notification_cb, setup_cb, timeout)
@@ -642,6 +642,8 @@ function module.set_shell_powershell(fake)
return found
end
+---@param func function
+---@return table<string,function>
function module.create_callindex(func)
return setmetatable({}, {
--- @param tbl table<any,function>