From 225a2a287f2f33bad42b3ae94ab1de2d1025efa8 Mon Sep 17 00:00:00 2001 From: Vhyrro Date: Thu, 22 Feb 2024 18:17:54 +0100 Subject: [PATCH] chore: make type checker happy --- lua/neorg/core/callbacks.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/neorg/core/callbacks.lua b/lua/neorg/core/callbacks.lua index 352a53cf0..659ecdaf8 100644 --- a/lua/neorg/core/callbacks.lua +++ b/lua/neorg/core/callbacks.lua @@ -13,7 +13,7 @@ local callbacks = { --- Triggers a new callback to execute whenever an event of the requested type is executed. --- @param event_name string The full path to the event we want to listen on. --- @param callback fun(event: neorg.event, content: table|any) The function to call whenever our event gets triggered. ---- @param content_filter fun(event: neorg.event): boolean # A filtering function to test if a certain event meets our expectations. +--- @param content_filter? fun(event: neorg.event): boolean # A filtering function to test if a certain event meets our expectations. function callbacks.on_event(event_name, callback, content_filter) -- If the table doesn't exist then create it callbacks.callback_list[event_name] = callbacks.callback_list[event_name] or {}