vscode-wow-api
vscode-wow-api copied to clipboard
EditMacro icon param typings
https://warcraft.wiki.gg/wiki/API_EditMacro
EditMacro(macroName, macroName, "INV_Misc_QuestionMark", fullMacroCommand)
Cannot assign `string` to parameter `number?`.
- `string` cannot match `number?`
- Type `string` cannot match `nil`
- Type `string` cannot match `number`Lua Diagnostics.(param-type-mismatch)
---[Documentation](https://warcraft.wiki.gg/wiki/API_EditMacro)
---@param macroInfo number|string index or name
---@param name string
---@param icon? number
---@param body? string
---@return number macroID
function EditMacro(macroInfo, name, icon, body) end
---@param icon? number
should also allow string
perhaps
oops, will be fixed in the next release when it pulls from the wiki https://warcraft.wiki.gg/index.php?title=API_EditMacro&diff=6026221&oldid=2547849