mobxjs / serializr

Serialize and deserialize complex object graphs to and from JSON and Javascript classes
MIT License
766 stars 52 forks source link

Incompatible with Stage 3 ES decorators ? #184

Open Obiwarn opened 6 months ago

Obiwarn commented 6 months ago

I use the new "2022.3/Stage 3" decorator syntax in my project.

When I try serializr:

class Test {
    @serializable
    a = 1;
  }

I get errors:


TS1240: Unable to resolve signature of property decorator when called as an expression.
Argument of type

and

Error: [serializr] incorrect usage of @serializable decorator