You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While enable output decoratorMetadata, if a enum type contains negative number value, it will be outputed as Object type. But in TSC, it will still be Number type as expected.
Input code
Config
Playground link (or link to the minimal reproduction)
Describe the bug
While enable output decoratorMetadata, if a enum type contains negative number value, it will be outputed as Object type. But in TSC, it will still be Number type as expected.
Input code
Config
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.11.1&code=H4sIAAAAAAAAA0vNK81V8EtNTyzJLEsNLkksKS1WqOZSAIL8gtQ8BVsFXUMdMDc5J784Fcg31uGq5eJKBWnDphxNtRFYdVppXnJJZn6eQkFRfoGGpkI1UCw5J7G4WMERqtsBIgNm56G4xgrNddZcGBqKoQphCmoBh3UCrdUAAAA%3D&config=H4sIAAAAAAAAA22QSw6DMAxE95wCed1FxaKL3oFDWMEgKvKRbaQixN0bIEmp1F08npk8ea3qGl5i4Fmv8RmHgCzEZY6KLE7xHRXQJZAYHoPCLW87Mp5RPUt0KM9UNip7qMdJ6JC2cwOKPJDufSTNvWlSF0zeC%2BVE0uzoxn650hhvA5PIr3G3ohsm%2Bv8jo5Pes70WFfCWFDtUTPxnskppsL6bj9p0n%2F0GJ%2FsDvqaMWZBglDYnj9btA%2FChGnNrAQAA
SWC Info output
No response
Expected behavior
https://www.typescriptlang.org/play/?experimentalDecorators=true&emitDecoratorMetadata=true&target=99#code/KYOwrgtgBAcsDmBDALgSwG7AMrJWAzlAN4BQU5UA9gA6hQC8UAtAIwA0ZFAxgDaX7AGUAMwcAviRKhIUHHkKkKVWiCHtO5Xv0GMATOMkAzMCC5pKq6gCcaACgCUxCSV6J8hAILENUAALW7ex8QBBQMbFxkAgAuWFC0TDko-ABuSSV-G2oHH3xImNl81JIxIA
Actual behavior
Version
1.11.1
Additional context
No response
The text was updated successfully, but these errors were encountered: