Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed Jan 29, 2024
1 parent 89813ca commit 6094a23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/obsidian/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ end
--- Apply a function over all notes in the current vault.
---
---@param on_note fun(note: obsidian.Note)
---@param on_done fun()
---@param on_done fun()|?
---@param timeout integer|? Timeout in milliseconds.
Client.apply_async = function(self, on_note, on_done, timeout)
self:apply_async_raw(function(path)
Expand All @@ -781,7 +781,7 @@ end
--- Like apply, but the callback takes a path instead of a note instance.
---
---@param on_path fun(path: string)
---@param on_done fun()
---@param on_done fun()|?
---@param timeout integer|? Timeout in milliseconds.
Client.apply_async_raw = function(self, on_path, on_done, timeout)
local scan = require "plenary.scandir"
Expand Down

0 comments on commit 6094a23

Please sign in to comment.