diff options
Diffstat (limited to 'lua/conform/util.lua')
-rw-r--r-- | lua/conform/util.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lua/conform/util.lua b/lua/conform/util.lua index a408675..ea13e2d 100644 --- a/lua/conform/util.lua +++ b/lua/conform/util.lua @@ -61,9 +61,10 @@ M.tbl_slice = function(tbl, start_idx, end_idx) return ret end ----@param cb fun(...) ----@param wrapper fun(...) ----@return fun(...) +---@generic T : fun() +---@param cb T +---@param wrapper T +---@return T M.wrap_callback = function(cb, wrapper) return function(...) wrapper(...) |