File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 * └──────────────────────────────────────────────────────────────────────────────┘
3535 */
3636
37- import axios , { Axios , AxiosError } from 'axios' ;
37+ import axios , { AxiosInstance } from 'axios' ;
3838import { Auth , ConfigService , ProviderSession } from '../config/env.config' ;
3939import { Logger } from '../config/logger.config' ;
4040import { execSync } from 'child_process' ;
41- import { writeFileSync } from 'fs' ;
42- import { join } from 'path' ;
4341
4442type ResponseSuccess = { status : number ; data ?: any } ;
4543type ResponseProvider = Promise < [ ResponseSuccess ?, Error ?] > ;
@@ -49,7 +47,7 @@ export class ProviderFiles {
4947
5048 private readonly logger = new Logger ( this . configService , ProviderFiles . name ) ;
5149
52- private _client : Axios ;
50+ private _client : AxiosInstance ;
5351
5452 public get client ( ) {
5553 return this . _client ;
Original file line number Diff line number Diff line change @@ -1690,7 +1690,7 @@ export class WAStartupService {
16901690 responseType : 'arraybuffer' ,
16911691 } ) ;
16921692
1693- mimetype = response . headers [ 'content-type' ] ;
1693+ mimetype = response . headers [ 'content-type' ] as string ;
16941694 if ( ! ext ) {
16951695 ext = mime . extension ( mimetype ) as string ;
16961696 }
You can’t perform that action at this time.
0 commit comments