-
-
Notifications
You must be signed in to change notification settings - Fork 404
Open
Description
Hi,
Is it possible to create a generic table such that the returned type is the key as a type. For example:
---@class MyClass
local MyClass = {}
---@generic T
---@type table<'T', T>
local Classes = {}
local c = Classes["MyClass"]In the above example, I expect c to have the type MyClass
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels