Closed
Description
Hey, I want to define classes properly.
We use this middleclass to create classes in lua.
However if I define a class that takes parameters like this:
---@class CustomClass
CustomClass = class("CustomClass")
function CustomClass:initialize(sometable)
self.sometable = sometable
end
local s_SomeTable = { test = 2 }
--- this shows as unknown instead of CustomClass
local s_CustomClass = CustomClass(s_SomeTable)
It doesn't work. Also CustomClass.static
etc. would be unknown.
Is this something I can do? or do you need to add support for it? I want this since really long time.