-
-
Notifications
You must be signed in to change notification settings - Fork 184
Open
Labels
Description
This Input:
namespace What {
export enum Is {
Going,
On
}
}
Transpiles to:
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
What = What or ({})
do
What.Is = Is or ({})
What.Is.Going = 0
What.Is[What.Is.Going] = "Going"
What.Is.On = 1
What.Is[What.Is.On] = "On"
end
Two points:
Why the bidirectional enum handling by default? What if someone wants to take advantage of lua's simplicity and iterates over it with "pairs"?I just learned that numeric typescript enums are bidirectional...- Why "What.Is = Is or ({})" ?? Should it not be "What.Is = What.Is or ({})"
Reactions are currently unavailable