Skip to content

Commit 6094a23

Browse files
committed
fix type
1 parent 89813ca commit 6094a23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/obsidian/client.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ end
765765
--- Apply a function over all notes in the current vault.
766766
---
767767
---@param on_note fun(note: obsidian.Note)
768-
---@param on_done fun()
768+
---@param on_done fun()|?
769769
---@param timeout integer|? Timeout in milliseconds.
770770
Client.apply_async = function(self, on_note, on_done, timeout)
771771
self:apply_async_raw(function(path)
@@ -781,7 +781,7 @@ end
781781
--- Like apply, but the callback takes a path instead of a note instance.
782782
---
783783
---@param on_path fun(path: string)
784-
---@param on_done fun()
784+
---@param on_done fun()|?
785785
---@param timeout integer|? Timeout in milliseconds.
786786
Client.apply_async_raw = function(self, on_path, on_done, timeout)
787787
local scan = require "plenary.scandir"

0 commit comments

Comments
 (0)