-
-
Notifications
You must be signed in to change notification settings - Fork 384
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
LOVE enum types are declared as table in the libraries. For example, love.KeyConstrant
in love.keyboard.lua
is supposed to be enum like this
---@alias love.KeyConstrant '"a"' | '"b"' | '"c"' | (and so on)
But instead it's a class.
---@class love.KeyConstant
---@field a integer
---@field b integer
---@field c integer
(and so on)
Expected behavior
LOVE enums are literal string, so it makes sense to use
---@alias EnumName '"enumvalue1"' | '"enumvalue2"' | '"enumvalue3"' | (and so on)
I'm sure it happends on other LOVE enums too.
Environment (please complete the following information):
- OS: Any (Not Applicable)
- Is WSL remote? Any (Not Applicable)
- Client: VSCode
Provide logs
Not Applicable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working