Skip to content

Commit fb9b16a

Browse files
Samarpan  BhattacharyaSamarpan  Bhattacharya
authored andcommitted
fix(component): missing return type
gh-0
1 parent 927028e commit fb9b16a

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/mixins/audit.mixin.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {MixinTarget} from '@loopback/core';
1+
import {Constructor, MixinTarget} from '@loopback/core';
22
import {
33
Count,
44
DataObject,
@@ -18,7 +18,10 @@ export function AuditRepositoryMixin<
1818
Relations extends object,
1919
UserID,
2020
R extends MixinTarget<EntityCrudRepository<M, ID, Relations>>,
21-
>(superClass: R, opts: IAuditMixinOptions) {
21+
>(
22+
superClass: R,
23+
opts: IAuditMixinOptions,
24+
): R & Constructor<IAuditMixin<UserID>> {
2225
class MixedRepository extends superClass implements IAuditMixin<UserID> {
2326
getAuditLogRepository: () => Promise<AuditLogRepository>;
2427
getCurrentUser?: () => Promise<{id?: UserID}>;

0 commit comments

Comments
 (0)