From 6b91207cc94a3cc76087f0ac5bc1fed50d66b3f0 Mon Sep 17 00:00:00 2001 From: Ilias Rbayti <63159154+Kenshiin13@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:33:35 +0100 Subject: [PATCH] refactor(cron/server/main): Add more type annotations --- [core]/cron/server/main.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/[core]/cron/server/main.lua b/[core]/cron/server/main.lua index 2ad258b6..fb6cec25 100644 --- a/[core]/cron/server/main.lua +++ b/[core]/cron/server/main.lua @@ -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)))