Angular-RU / angular-ru-sdk

🅰️ ngular-RU Software Development Kit
72 stars 16 forks source link

🐞 - `@StateRepository` decorator error when used with `@ngxs/store` `v18.1.3` #1526

Closed hakimio closed 1 month ago

hakimio commented 1 month ago

Which @angular-ru/* package(s) are the source of the bug?

ngxs

Is this a regression?

Yes

Description

After upgrading @ngxs/store from 18.1.1 to 18.1.3, TS reports error:

TS1238: Unable to resolve signature of class decorator when called as an expression.
Type 'typeof FooRepository' has no properties in common with type 'DataStateClass'.

image

splincode commented 1 month ago

Could you fix it?

hakimio commented 1 month ago

Ok, I'll try.

hakimio commented 1 month ago

This time it's not only type changes but also some bigger changes like the following:

It will take some time to fix this.