Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
20Koen02 committed Oct 17, 2021
1 parent 2cb8cf1 commit 7dd8068
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/client/RestClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ const supportedAvatarFormats = [
export class RestClient {
public app: Application;

constructor(middleWares: never) {
constructor(middleWares: {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
forEach: (arg0: (middleWare: any) => void) => void;
}) {
this.app = express();
this.registerMiddlewares(middleWares);
this.registerRoute();
Expand Down Expand Up @@ -73,7 +76,8 @@ export class RestClient {
}

private registerMiddlewares(middleWares: {
forEach: (arg0: (middleWare: never) => void) => void;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
forEach: (arg0: (middleWare: any) => void) => void;
}) {
middleWares.forEach((middleWare) => {
this.app.use(middleWare);
Expand Down

0 comments on commit 7dd8068

Please sign in to comment.