File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change
1
+ --- @class PlenaryFun
1
2
local M = {}
2
3
3
4
M .bind = require (" plenary.functional" ).partial
4
5
6
+ --- @param fn fun ( ... )
7
+ --- @param argc integer
8
+ --- @return fun ( ... )
5
9
function M .arify (fn , argc )
6
10
return function (...)
7
11
if select (" #" , ... ) ~= argc then
@@ -12,6 +16,8 @@ function M.arify(fn, argc)
12
16
end
13
17
end
14
18
19
+ --- @param map fun ( ... )
20
+ --- @return fun ( to_wrap : fun ( ... )): fun ( ... )
15
21
function M .create_wrapper (map )
16
22
return function (to_wrap )
17
23
return function (...)
Original file line number Diff line number Diff line change 6
6
--- @field curl PlenaryCurl
7
7
--- @field enum PlenaryEnum
8
8
--- @field filetype PlenaryFiletype
9
+ --- @field fun PlenaryFun
9
10
--- @field functional PlenaryFunctional
10
11
--- @field job PlenaryJob
11
12
--- @field json PlenaryJson
You can’t perform that action at this time.
0 commit comments