Skip to content

Commit

Permalink
style: fix unexpected any linter warnings in extendWithT
Browse files Browse the repository at this point in the history
Used the suggester Record<string, unknown> to replace any

Closes: hyperledger-cacti#2675
Signed-off-by: bmvd70 <bastian.vidal@mni.thm.de>
  • Loading branch information
bmvd70 committed Sep 17, 2023
1 parent 7bb3957 commit 64a2836
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cactus-api-client/src/main/typescript/api-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export class ApiClient extends BaseAPI {
public extendWith<T>(
ctor: new (configuration?: Configuration) => T,
): T & this {
const instance = new ctor(this.configuration) as any;
const self = this as any;
const instance = new ctor(this.configuration) as Record<string, unknown>;
const self = this as Record<string, unknown>;

Objects.getAllMethodNames(instance).forEach(
(method: string) => (self[method] = instance[method]),
Expand Down

0 comments on commit 64a2836

Please sign in to comment.