Edoardo Luppi
02/15/2024, 9:53 AMJsVirtual
/ JsValue
mechanism implemented with sealed interfaces instead of enums.
Is that because of technical limitations of external enums?turansky
02/15/2024, 10:04 AM// valid TS enum
enum TSEnum {
a = 1,
b = 1,
c = 1,
d = 2,
e = 2,
;
}
1. No enum = No runtime
2. Enum has additional properties/methods, which unions don't have
3. External enums deprecated (it's cool)