Skip to content

doc-table keys type with ---@field #1065

@Nexela

Description

@Nexela
--- @class CustomTable
--- @field object_name

--- @class Object

--- @class Test
--- @field custom_table {[string]: Object}
test = {}

test.custom_table

Hovering on test.custom_table just shows table instead table<string, Object>

Additionally similar to CustomTable<string, object> being able to do
--- @field custom_table CustomTable{[string]: Object} and seeing CustomTable<string, object> when hovering custom_table.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfeat/LuaCats AnnotationsRelated to Lua Language Server Annotations (LuaCats)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions