I encountered the following problem while using this code:
return new Promise(resolve => {
this.http.get(Config.rootUrl, {
params
}).subscribe(response => {
resolve(response.data);
}, (err: HttpErrorResponse) => {
console.log(err.message);
});
});
My IDE, PhpStorm, is highlighting the line resolve( response.data );
as an error:
property data does not exist on type Object
This error doesn't bother me much usually, but sometimes Angular shows the same issue after compilation.
Can anyone provide insight into what might be causing this problem?
Best regards, Radek