Refactor calendar context functions to improve documentation clarity and parameter usage

This commit is contained in:
2025-05-18 00:53:16 +02:00
parent 377b3b7aa7
commit e01a681d66
5 changed files with 45 additions and 56 deletions

View File

@@ -1,15 +1,13 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---@param monthOffset CalendarContextSelectEvent
---@param -1
---@param 0
---@param 1
---@param nil CalendarContextSelectEvent
---@param day number
---@param index number
---@return 2 inviteType
---@return 1
---@return 2
---@alias inviteType
---| 1 Characters can only be explicitly invited to the event (or event is a non-invite/non-signup event)
---| 2 Event is visible to the player's entire guild; guild members can sign up and other characters can be explicitly invited
---@param monthOffset monthOffset
---@param day number
---@param index number
---@return inviteType
---Returns the invite type for an event
function CalendarContextInviteType(monthOffset, -1, 0, 1, nil, day, index) end
function CalendarContextInviteType(monthOffset, day, index) end