diff --git a/api/SetWhoToUI.lua b/api/SetWhoToUI.lua index 5bed162..4266b2d 100644 --- a/api/SetWhoToUI.lua +++ b/api/SetWhoToUI.lua @@ -1,7 +1,9 @@ ---@diagnostic disable: missing-return, lowercase-global +---@alias WHO_LIST_UPDATE +---| '0' - CHAT_MSG_SYSTEM +---| '1' - WHO_LIST_UPDATE + ---@param state WHO_LIST_UPDATE ----@param 0 WHO_LIST_UPDATE ----@param 1 WHO_LIST_UPDATE ---Changes the delivery method for results from SendWho() queries. In the default UI, results delivered in CHAT_MSG_SYSTEM are printed in the main chat window; results delivered in a WHO_LIST_UPDATE event cause the FriendsFrame to be shown, displaying the results in its "Who" tab. -function SetWhoToUI(state, 0, 1) end \ No newline at end of file +function SetWhoToUI(state) end \ No newline at end of file diff --git a/api/UnitInParty.lua b/api/UnitInParty.lua index ef33427..3a89083 100644 --- a/api/UnitInParty.lua +++ b/api/UnitInParty.lua @@ -1,7 +1,7 @@ ---@diagnostic disable: missing-return, lowercase-global ---@param unit string ----@param name string ----@return 1nil inParty +---@return number|nil inParty (1 or nil) ---Returns whether a unit is a player unit in the player's party. Always returns 1 for the player unit. Returns nil for the player's or party members' pets. -function UnitInParty(unit, name) end \ No newline at end of file +---@overload fun(name: string): number|nil +function UnitInParty(unit) end \ No newline at end of file diff --git a/api/UnitIsRaidOfficer.lua b/api/UnitIsRaidOfficer.lua index 4b0c08c..7b56f77 100644 --- a/api/UnitIsRaidOfficer.lua +++ b/api/UnitIsRaidOfficer.lua @@ -1,7 +1,7 @@ ---@diagnostic disable: missing-return, lowercase-global ---@param unit string ----@param name string ----@return 1nil leader +---@return number|nil leader (1 or nil) ---Returns whether a unit is a raid assistant in the player's raid -function UnitIsRaidOfficer(unit, name) end \ No newline at end of file +---@overload fun(name: string): number|nil +function UnitIsRaidOfficer(unit) end \ No newline at end of file