You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is already custom behavior when __index is defined in a metatable, why not __call? You can manually define the overload, but then you have to define the signature twice.
---@overloadfun(a: string, b: number): booleanlocalfoo=setmetatable({}, {
---@paramastring---@parambnumber---@returnboolean__call=function(a, b)
returntrue;
end
});