Skip to content

Commit 7dd8068

Browse files
committed
oops
1 parent 2cb8cf1 commit 7dd8068

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/client/RestClient.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ const supportedAvatarFormats = [
1919
export class RestClient {
2020
public app: Application;
2121

22-
constructor(middleWares: never) {
22+
constructor(middleWares: {
23+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
24+
forEach: (arg0: (middleWare: any) => void) => void;
25+
}) {
2326
this.app = express();
2427
this.registerMiddlewares(middleWares);
2528
this.registerRoute();
@@ -73,7 +76,8 @@ export class RestClient {
7376
}
7477

7578
private registerMiddlewares(middleWares: {
76-
forEach: (arg0: (middleWare: never) => void) => void;
79+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
80+
forEach: (arg0: (middleWare: any) => void) => void;
7781
}) {
7882
middleWares.forEach((middleWare) => {
7983
this.app.use(middleWare);

0 commit comments

Comments
 (0)