Annotating Enums without numbers #1910
Unanswered
NickGrease
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Your example doesn't look like something enums are used for. I'd try using For example: ---@class Component
---@field Position vector3 Description here
---@field Plan someType
--- ... Ideally you would use |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The Documentation:

My (successful) attempt:
Result:

I'm just wondering if there's a 'better' way when the enum values are not known. ComponentType has around 150 members, and I can't be sure they are sequential or even what number they start at, not that that is an issue, I just need the auto-complete.
Beta Was this translation helpful? Give feedback.
All reactions