fix: type corrections

This commit is contained in:
Linden
2023-05-18 15:29:31 +10:00
parent 72d0671bad
commit 16875ca7e3
2 changed files with 2 additions and 3 deletions

View File

@@ -11,11 +11,10 @@ currentDate.sec = 0
---@field job fun(task: OxTask, date: osdate) ---@field job fun(task: OxTask, date: osdate)
---@field isActive boolean ---@field isActive boolean
---@field id number ---@field id number
---@field getNextTime function
---@field debug? boolean ---@field debug? boolean
---@class OxTask : OxTaskProperties ---@class OxTask : OxTaskProperties
---@field private scheduleTask fun(self: OxTask) ---@field private scheduleTask fun(self: OxTask): boolean?
local OxTask = {} local OxTask = {}
OxTask.__index = OxTask OxTask.__index = OxTask

View File

@@ -4,7 +4,7 @@ local skillcheck
---@alias SkillCheckDifficulity 'easy' | 'medium' | 'hard' | { areaSize: number, speedMultiplier: number } ---@alias SkillCheckDifficulity 'easy' | 'medium' | 'hard' | { areaSize: number, speedMultiplier: number }
---@param difficulty SkillCheckDifficulity | SkillCheckDifficulity[] ---@param difficulty SkillCheckDifficulity | SkillCheckDifficulity[]
---@param inputs string[] ---@param inputs string[]?
---@return boolean? ---@return boolean?
function lib.skillCheck(difficulty, inputs) function lib.skillCheck(difficulty, inputs)
if skillcheck then return end if skillcheck then return end