@@ -91,9 +91,11 @@ function W.Utilities.Async.WithItemLink(itemLink, callback)
9191 return W .Utilities .Async .WithItemID (itemID , callback )
9292end
9393
94+ --- @alias SpellCallback fun ( spellInstance : SpellMixin )
95+
9496--- Load spell data asynchronously and execute callback
9597--- @param spellID number The spell ID to load
96- --- @param callback function ? Callback function to execute when spell is loaded
98+ --- @param callback SpellCallback ? Callback function to execute when spell is loaded
9799--- @return any ? spell Cached spell data if available
98100function W .Utilities .Async .WithSpellID (spellID , callback )
99101 if type (spellID ) ~= " number" then
133135--- Load multiple items asynchronously from a table
134136--- @param itemIDTable table Table containing item IDs
135137--- @param tType string ? Type of table processing
136- --- @param callback function ? Callback for individual items
138+ --- @param callback ItemCallback ? Callback for individual items
137139--- @param tableCallback function ? Callback for completed table
138140function W .Utilities .Async .WithItemIDTable (itemIDTable , tType , callback , tableCallback )
139141 if type (itemIDTable ) ~= " table" then
229231--- Load multiple spells asynchronously from a table
230232--- @param spellIDTable table Table containing spell IDs
231233--- @param tType string ? Type of table processing
232- --- @param callback function ? Callback for individual spells
234+ --- @param callback SpellCallback ? Callback for individual spells
233235--- @param tableCallback function ? Callback for completed table
234236function W .Utilities .Async .WithSpellIDTable (spellIDTable , tType , callback , tableCallback )
235237 if type (spellIDTable ) ~= " table" then
0 commit comments