Skip to content

Commit b197f45

Browse files
committed
Chore: Updated the types for Yazi
Reference: sxyazi/yazi#2476
1 parent e676d3c commit b197f45

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

yazi_types.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,9 @@
948948
--- resolve: boolean|nil, -- Whether to resolve symlinks.
949949
--- },
950950
---): File[]|nil, Error|nil Read the contents of a directory.
951+
---@field expand_url fun(
952+
--- url: string|Url, -- The string or Url to expand.
953+
---): Url|nil, Error|nil Expand a file path fully.
951954
---@field unique_name fun(
952955
--- url: Url, -- The Url of the item to generate a unique name for.
953956
---): Url|nil, Error|nil Generate a unique name for a file or directory.
@@ -1091,8 +1094,9 @@
10911094

10921095
-- The type of the args object in the runtime
10931096
---@class (exact) rt.Args
1094-
---@field chooser_file Url The file path to write the selected files to
1097+
---@field entries Url[] The url of the current directory in each tab in Yazi
10951098
---@field cwd_file Url The file path to write the current working directory to
1099+
---@field chooser_file Url The file path to write the selected files to
10961100

10971101
-- The type of the mouse events, which are the types of mouse events
10981102
-- that can be received by the plugin system.

0 commit comments

Comments
 (0)