Refactor API functions to improve parameter aliasing and enhance documentation clarity

This commit is contained in:
2025-05-18 15:12:37 +02:00
parent cbed6108ef
commit b5cba11bd3
10 changed files with 95 additions and 99 deletions

View File

@@ -1,11 +1,12 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---@param name string
---@param gender 3
---@param 1 or nil
---@param 2
---@param 3
---@return number numSets
---@alias gender
---| 1 or nil - Neuter
---| 2 - Male
---| 3 - Female
---@param name string
---@param gender gender
---Returns the number of suggested declension sets for a name. Used in the Russian localized World of Warcraft client; see DeclineName for further details. Returns 0 in other locales.
function GetNumDeclensionSets(name, gender, 1 or nil, 2, 3) end
function GetNumDeclensionSets(name, gender) end