refactor(cron/server/main): Add more type annotations

This commit is contained in:
Ilias Rbayti
2024-11-14 12:33:35 +01:00
parent b69385fff6
commit 6b91207cc9
+3
View File
@@ -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)))