vscode-wow-api icon indicating copy to clipboard operation
vscode-wow-api copied to clipboard

EditMacro icon param typings

Open masterkain opened this issue 9 months ago • 1 comments

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

masterkain avatar May 06 '24 01:05 masterkain

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

Ketho avatar May 06 '24 01:05 Ketho