Skip to content

Commit 8936460

Browse files
committed
Rename ApiTreeExpandAllOpts to ApiTreeExpandOpts
1 parent 06575bc commit 8936460

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lua/nvim-tree/actions/tree/modifiers/expand.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ local function gen_iterator(should_descend)
102102
end
103103

104104
---@param node Node?
105-
---@param expand_opts ApiTreeExpandAllOpts?
105+
---@param expand_opts ApiTreeExpandOpts?
106106
local function expand_node(node, expand_opts)
107107
if not node then
108108
return
@@ -120,14 +120,14 @@ end
120120

121121
---Expand the directory node or the root
122122
---@param node Node
123-
---@param expand_opts ApiTreeExpandAllOpts?
123+
---@param expand_opts ApiTreeExpandOpts?
124124
function M.all(node, expand_opts)
125125
expand_node(node and node:as(DirectoryNode) or core.get_explorer(), expand_opts)
126126
end
127127

128128
---Expand the directory node or parent node
129129
---@param node Node
130-
---@param expand_opts ApiTreeExpandAllOpts?
130+
---@param expand_opts ApiTreeExpandOpts?
131131
function M.node(node, expand_opts)
132132
if not node then
133133
return

lua/nvim-tree/api.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ Api.tree.search_node = wrap(actions.finders.search_node.fn)
187187

188188
Api.tree.collapse_all = wrap(actions.tree.modifiers.collapse.all)
189189

190-
---@class ApiTreeExpandAllOpts
190+
---@class ApiTreeExpandOpts
191191
---@field expand_until (fun(expansion_count: integer, node: Node): boolean)|nil
192192

193193
Api.tree.expand_all = wrap_node(actions.tree.modifiers.expand.all)

0 commit comments

Comments
 (0)