We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fa6614 commit c359b89Copy full SHA for c359b89
lua/resession/init.lua
@@ -622,14 +622,14 @@ end
622
623
---Add a callback that runs at a specific time
624
---@param name "pre_save"|"post_save"|"pre_load"|"post_load"
625
----@param callback fun()
+---@param callback fun(...: any)
626
M.add_hook = function(name, callback)
627
table.insert(hooks[name], callback)
628
end
629
630
---Remove a hook callback
631
632
633
M.remove_hook = function(name, callback)
634
local cbs = hooks[name]
635
for i, cb in ipairs(cbs) do
0 commit comments