Inject generic repository
gcherem opened this issue · comments
gcherem commented
I'm submitting a...
[ ] Regression
[ ] Bug report
[ ] Feature request
[X] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
I could not post at the original thread #187 because it is locked. I created the mixin as proposed at the @krazibit comment
But when I try to implement/extend the DataService
like this
export class MyService extends DataService(MyEntity) {
I get the error:
A class can only implement an identifier/qualified-name with optional type arguments.ts(2500)
Am I missing something? Can anyone provide an example on how to implement/extend that mixin? Thanks
Kamil Mysliwiec commented
Please search through some of our old issues on this (this has been discussed several times in the past). Also, for such questions, please use our Discord channel.