From 6094a23fe1a3687caa57977e966bccace25247d3 Mon Sep 17 00:00:00 2001 From: epwalsh Date: Mon, 29 Jan 2024 09:56:42 -0800 Subject: [PATCH] fix type --- lua/obsidian/client.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/obsidian/client.lua b/lua/obsidian/client.lua index c38d2fa85..916baa834 100644 --- a/lua/obsidian/client.lua +++ b/lua/obsidian/client.lua @@ -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) @@ -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"