Fix up a few apis
This commit is contained in:
@@ -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
|
@@ -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
|
@@ -2,6 +2,6 @@
|
||||
|
||||
---@param unitA string
|
||||
---@param unitB string
|
||||
---@return number|nil canAttack 1 or nil
|
||||
---@return boolean canAttack
|
||||
---Returns whether one unit can attack another
|
||||
function UnitCanAttack(unitA, unitB) end
|
@@ -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
|
@@ -1,4 +1,7 @@
|
||||
---@diagnostic disable: missing-return, lowercase-global
|
||||
|
||||
|
||||
function tContains() end
|
||||
---@param table table<any, any>
|
||||
---@param value any
|
||||
---@return number|nil 1 or nil
|
||||
function tContains(table, value) end
|
Reference in New Issue
Block a user