Open aceyin opened 1 year ago
@class 注解只能作用在 local / global 变量上, 有没有可能支持作用在匿名的 table 上呢? 比如:
@class
table
local structs = { role = --- @class struct.Role { name = { type=string, } } }
没有 你完全可以 ---@alias a { name: { type: string }}
我试试
@class
注解只能作用在 local / global 变量上, 有没有可能支持作用在匿名的table
上呢? 比如: