Fix up a few apis
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
---@diagnostic disable: missing-return, lowercase-global
|
---@diagnostic disable: missing-return, lowercase-global
|
||||||
|
|
||||||
---@param name string
|
---@param name string
|
||||||
---@param password string
|
|
||||||
---@param chatFrameIndex number
|
|
||||||
---@param enableVoice boolean
|
|
||||||
---@return number zoneChannel
|
---@return number zoneChannel
|
||||||
---@return string channelName
|
---@return string channelName
|
||||||
---Joins a channel, saving associated chat window settings
|
---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
|
function JoinPermanentChannel(name, password, chatFrameIndex, enableVoice) end
|
@@ -17,6 +17,6 @@
|
|||||||
---@param text string
|
---@param text string
|
||||||
---@param chatType channel
|
---@param chatType channel
|
||||||
---Sends a chat message
|
---Sends a chat message
|
||||||
---@overload fun(text: string, chatType: channel, languageIndex: number)
|
---@overload fun(text: string, chatType: channel, languageIndex: number|nil)
|
||||||
---@overload fun(text: string, chatType: channel, languageIndex: number, channel: string)
|
---@overload fun(text: string, chatType: channel, languageIndex: number|nil, channel: string)
|
||||||
function SendChatMessage(text, chatType, languageIndex, channel) end
|
function SendChatMessage(text, chatType, languageIndex, channel) end
|
@@ -1,7 +1,7 @@
|
|||||||
---@diagnostic disable: missing-return, lowercase-global
|
---@diagnostic disable: missing-return, lowercase-global
|
||||||
|
|
||||||
---@param unitA string
|
---@param unitA string
|
||||||
---@param unitB string
|
---@param unitB string
|
||||||
---@return number|nil canAttack 1 or nil
|
---@return boolean canAttack
|
||||||
---Returns whether one unit can attack another
|
---Returns whether one unit can attack another
|
||||||
function UnitCanAttack(unitA, unitB) end
|
function UnitCanAttack(unitA, unitB) end
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
---@diagnostic disable: missing-return, lowercase-global
|
---@diagnostic disable: missing-return, lowercase-global
|
||||||
|
|
||||||
---@param format string
|
---@param format string
|
||||||
---@param time number
|
|
||||||
---@return string or table dateValue
|
---@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.
|
---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
|
function date(format, time) end
|
@@ -1,4 +1,7 @@
|
|||||||
---@diagnostic disable: missing-return, lowercase-global
|
---@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