This is my code for get data from database - works. I get data no problem, but i have this message " error TS2339: Property 'ReturnValues' does not exist on type 'Object'. " Why i have this error message?
import {HttpClient} from '@angular/common/http';
import {Component, OnInit} from '@angular/core';
@Component({
selector: 'app-product',
templateUrl: './product.component.html',
styleUrls: ['./product.component.css']
})
export class ProductComponent {
title: string;
constructor(private http: HttpClient) {
}
ngOnInit(): void {
this.http.post('myUrl for request', {
APIVersion: '1',
Calls: [{
Function: 'getObject', Arguments: [
"Customer", [{
"column": "customerID",
"value": '0',
"operator": ">"
}],
[], //Sort Array
"", //Page
"", //Limit
[]
]
}],
Authentication: {
AccessToken: '7644c600394f1e23512c90602d5c78ca'
}
}).subscribe(data => {
console.log(data.ReturnValues[0].items)
// this.title=data.ReturnValues[0].items;
}, err => {console.log(err)})
}
}