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

[skip ci]

Closes: #2675

Signed-off-by: bmvd70 <bastian.vidal@mni.thm.de>
  • Loading branch information
bmvd70 authored and petermetz committed Sep 18, 2023
1 parent 1e18964 commit 8255134
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 8255134

Please sign in to comment.