I just trying sample from README and I get this error:
error TS2345: Argument of type 'typeof Team' is not assignable to parameter of type 'new () => Team'.
Cannot assign a 'protected' constructor type to a 'public' constructor type.
Yes you are right, protected constructor for Resource class is not necessary. I think this mistake was did when changing project structure. Will fix it in new release.
Hello,
I just trying sample from README and I get this error:
error TS2345: Argument of type 'typeof Team' is not assignable to parameter of type 'new () => Team'. Cannot assign a 'protected' constructor type to a 'public' constructor type.
If I create public empty constructor, it works without error.
Why is constructor on RestService protected?