diff --git a/api/JoinPermanentChannel.lua b/api/JoinPermanentChannel.lua index 492ed72..0397fed 100644 --- a/api/JoinPermanentChannel.lua +++ b/api/JoinPermanentChannel.lua @@ -1,10 +1,10 @@ ---@diagnostic disable: missing-return, lowercase-global ---@param name string ----@param password string ----@param chatFrameIndex number ----@param enableVoice boolean ---@return number zoneChannel ---@return string channelName ---Joins a channel, saving associated chat window settings +---@overload fun(name: string, password: string) +---@overload fun(name: string, password: string, chatFrameIndex: number) +---@overload fun(name: string, password: string, chatFrameIndex: number, enableVoice: boolean) function JoinPermanentChannel(name, password, chatFrameIndex, enableVoice) end \ No newline at end of file diff --git a/api/SendChatMessage.lua b/api/SendChatMessage.lua index fdd9695..26ead21 100644 --- a/api/SendChatMessage.lua +++ b/api/SendChatMessage.lua @@ -17,6 +17,6 @@ ---@param text string ---@param chatType channel ---Sends a chat message ----@overload fun(text: string, chatType: channel, languageIndex: number) ----@overload fun(text: string, chatType: channel, languageIndex: number, channel: string) +---@overload fun(text: string, chatType: channel, languageIndex: number|nil) +---@overload fun(text: string, chatType: channel, languageIndex: number|nil, channel: string) function SendChatMessage(text, chatType, languageIndex, channel) end \ No newline at end of file diff --git a/api/UnitCanAttack.lua b/api/UnitCanAttack.lua index 6c1e94e..247817e 100644 --- a/api/UnitCanAttack.lua +++ b/api/UnitCanAttack.lua @@ -1,7 +1,7 @@ ---@diagnostic disable: missing-return, lowercase-global ----@param unitA string ----@param unitB string ----@return number|nil canAttack 1 or nil +---@param unitA string +---@param unitB string +---@return boolean canAttack ---Returns whether one unit can attack another -function UnitCanAttack(unitA, unitB) end \ No newline at end of file +function UnitCanAttack(unitA, unitB) end diff --git a/api/date.lua b/api/date.lua index b55dc8c..77c40b9 100644 --- a/api/date.lua +++ b/api/date.lua @@ -1,7 +1,7 @@ ---@diagnostic disable: missing-return, lowercase-global ---@param format string ----@param time number ---@return string or table dateValue ---Returns a formatted date/time string for a date (or the current date). Alias to the standard library function os.date. +---@overload fun(format: string, time: number) function date(format, time) end \ No newline at end of file diff --git a/api/tContains.lua b/api/tContains.lua index b0ccd98..d4a974b 100644 --- a/api/tContains.lua +++ b/api/tContains.lua @@ -1,4 +1,7 @@ ---@diagnostic disable: missing-return, lowercase-global -function tContains() end \ No newline at end of file +---@param table table +---@param value any +---@return number|nil 1 or nil +function tContains(table, value) end \ No newline at end of file