Skip to content

Commit

Permalink
chore: make type checker happy
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Feb 22, 2024
1 parent 07967f1 commit 225a2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neorg/core/callbacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand Down

0 comments on commit 225a2a2

Please sign in to comment.