IntelliJ-EmmyLua
IntelliJ-EmmyLua copied to clipboard
@class 支持匿名 table / table 元素 ?
@class 注解只能作用在 local / global 变量上, 有没有可能支持作用在匿名的 table 上呢?
比如:
local structs = {
role =
--- @class struct.Role
{
name = { type=string, }
}
}
没有 你完全可以 ---@alias a { name: { type: string }}
我试试