File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 69
69
70
70
--- Inject the node as the first argument if present otherwise do nothing.
71
71
--- @param fn fun ( node : Node , ... ): any
72
- --- @return fun ( node : Node , ... ): any
72
+ --- @return fun ( node : Node ? , ... ): any
73
73
local function wrap_node (fn )
74
74
return function (node , ...)
75
75
node = node or wrap_explorer (" get_node_at_cursor" )()
@@ -80,8 +80,8 @@ local function wrap_node(fn)
80
80
end
81
81
82
82
--- Inject the node or nil as the first argument if absent.
83
- --- @param fn fun ( node : Node , ... ): any
84
- --- @return fun ( node : Node , ... ): any
83
+ --- @param fn fun ( node : Node ? , ... ): any
84
+ --- @return fun ( node : Node ? , ... ): any
85
85
local function wrap_node_or_nil (fn )
86
86
return function (node , ...)
87
87
node = node or wrap_explorer (" get_node_at_cursor" )()
You can’t perform that action at this time.
0 commit comments