diff --git a/api/CreateMacro.lua b/api/CreateMacro.lua index 97bc96e..12d8231 100644 --- a/api/CreateMacro.lua +++ b/api/CreateMacro.lua @@ -3,7 +3,7 @@ ---@param name string ---@param iconTexture string ---@param body string ----@param perCharacter 1nil +---@param perCharacter number? ---@return number index ---Creates a new macro. Warning: Will throw an error if the quota of allowed macros is already met. function CreateMacro(name, iconTexture, body, perCharacter) end \ No newline at end of file diff --git a/api/hooksecurefunc.lua b/api/hooksecurefunc.lua index 25de471..60378ac 100644 --- a/api/hooksecurefunc.lua +++ b/api/hooksecurefunc.lua @@ -1,7 +1,7 @@ ---@diagnostic disable: missing-return, lowercase-global ----@param table table ----@param function string ----@param hookfunc function +---@param func string +---@param hookfunc function ---Add a function to be called after execution of a secure function. Allows one to "post-hook" a secure function without tainting the original. The original function will still be called, but the function supplied will be called after the original, with the same arguments. Return values from the supplied function are discarded. Note that there is no API to remove a hook from a function: any hooks applied will remain in place until the UI is reloaded. Only allows hooking of functions named by a global variable; to hook a script handler on a Frame object, see Frame:HookScript(). -function hooksecurefunc(table, function, hookfunc) end \ No newline at end of file +---@overload fun(table: table, function: string, hookfunc: function): void +function hooksecurefunc(func, hookfunc) end \ No newline at end of file