File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ const supportedAvatarFormats = [
1919export 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 ) ;
You can’t perform that action at this time.
0 commit comments