const req = args[0] as Request;
                  
                  
                        const res = args[1] as Response;
                  
                  
                  а так бросает ошибку Type 'any[]' is missing the following properties from type '[Request<ParamsDictionary>, Response]'
                  
                  
                    const [req, res]: [Request, Response] = args
                  
                  
                
загрузи код с ошибкой на typescript playground
Обсуждают сегодня