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 type alias, decorator metadata is not resolved.
Input code
import'reflect-metadata';constCOL_KEY=Symbol('col');typeCurrency='usd'|'eur'|'yen'constcolumn=()=>{return(object: any,key: string)=>{Reflect.defineMetadata(COL_KEY,'value',object,key);};};classUser{
@column()currency!: Currency;}console.log(Reflect.getMetadata('design:type',User.prototype,'currency'));// [Function: Object]// 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 type alias, decorator metadata is not resolved.
Input code
Config
Playground link
No response
Expected behavior
String
should have been emitted.Version
@swc/core: 1.2.107
Additional context
This sample code was written with #1421 as a reference.
This issue looks like related to #2461.
The text was updated successfully, but these errors were encountered: