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
When using unions, or literal types, no decorator metadata is emitted.
Input code
import'reflect-metadata';constCOL_KEY=Symbol('col');constcolumn=()=>{return(object: any,key: string)=>{Reflect.defineMetadata(COL_KEY,'value',object,key);};};classUser{
@column()currency!: 'usd'|'eur'|'yen';}console.log(Reflect.getMetadata('design:type',User.prototype,'currency'));// undefined// should be String
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
When using unions, or literal types, no decorator metadata is emitted.
Input code
Config
Expected behavior
String
should have been emitted.Version
The version of @swc/core: 1.2.47
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: