Skip to content

Commit ae609e6

Browse files
uga-rosaibhagwan
authored andcommitted
fix: annotaion for fzf_exec
An entry is string or number (just need to be able to apply `table.concat()`). `fzf_cb` can receive a callback function as a second argument (optional).
1 parent 6ed082c commit ae609e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/fzf-lua/core.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ local contents_from_arr = function(cont_arr)
116116
return contents
117117
end
118118

119-
---@alias content string[]|fun(fzf_cb: fun(entry?: string))|string|nil
119+
---@alias content (string|number)[]|fun(fzf_cb: fun(entry?: string|number, cb?: function))|string|nil
120120

121121
-- Main API, see:
122122
-- https://github.com/ibhagwan/fzf-lua/wiki/Advanced

0 commit comments

Comments
 (0)