mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 02:01:31 +00:00
refactor(cron/server/main): Add more type annotations
This commit is contained in:
@@ -58,6 +58,9 @@ end
|
||||
lastTimestamp = GetUnixTimestamp()
|
||||
Tick()
|
||||
|
||||
---@param h number
|
||||
---@param m number
|
||||
---@param cb function
|
||||
AddEventHandler("cron:runAt", function(h, m, cb)
|
||||
assert(type(h) == "number", ("Expected number for h, got %s"):format(type(h)))
|
||||
assert(type(m) == "number", ("Expected number for m, got %s"):format(type(m)))
|
||||
|
||||
Reference in New Issue
Block a user