Skip to content

Commit 8db2c11

Browse files
cameronrsudo-tee
authored andcommitted
chore(timer): mark optional params as optional
1 parent 13b2a30 commit 8db2c11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/opencode/ui/timer.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---@class TimerOptions
22
---@field interval number The interval in milliseconds
33
---@field on_tick function The function to call on each tick
4-
---@field on_stop function The function to call when the timer stops
5-
---@field repeat_timer boolean Whether the timer should repeat (default: true)
6-
---@field args table Optional arguments to pass to the on_tick function
4+
---@field on_stop? function The function to call when the timer stops
5+
---@field repeat_timer? boolean Whether the timer should repeat (default: true)
6+
---@field args? table Optional arguments to pass to the on_tick function
77

88
local Timer = {}
99
Timer.__index = Timer

0 commit comments

Comments
 (0)