Closed quangnv205 closed 2 years ago
Hi, I guess something wrong with your implementation of interface
the DynamicStorageService's constructor should not have any parameters?
the DynamicStorageService's constructor should not have any parameters?
Hi, it works like an inject service, parameters depend on nestjs implementation(di,IoC). But agree with you, we need to support parameters in constructor. If you have some improvement ideas or PR I will be pleased to consider it. Thanks for using Rbac!
Can not import RBAcModule on AppModule RBAcModule.forDynamic(DynamicStorageService) Argument of type 'typeof DynamicStorageService' is not assignable to parameter of type 'new () => IDynamicStorageRbac'. Types of construct signatures are incompatible. Type 'new (repository: any) => DynamicStorageService' is not assignable to type 'new () => IDynamicStorageRbac'.ts