Closed anuvyklack closed 1 year ago
Thanks! I don't know ---@field [1]
will work. Would you share the reference? Look like I need to improve my emmylua knowledge.
It is not EmmyLua, it is just Lua itself.
The list
local list = { 'one', 'twe', 'three' }
is actually a table:
local list = {
[1] = 'one',
[2] = 'two',
[3] = 'three'
}
So [1]
, [2]
and [3]
are real keys of the table, and you can specify them in an annotation.
Cool, not aware of the Lua table is everything.
fix
type commits have descriptions.