how to make type work from metatable's __call type? #2190
-
setmetatable(Xodel, {
---@param t Xodel
---@param ... ModelOpts
---@return Xodel
__call = function(t, ...)
return t:mix_with_base(...)
end
})When I use code like this: the |
Beta Was this translation helpful? Give feedback.
Answered by
xiangnanscu
Jul 5, 2023
Replies: 3 comments
-
|
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thanks all. This worked: ---@class Xodel
---@operator call:Xodel
local Xodel = {} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
xiangnanscu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks all. This worked: